"use strict";var Q3=Object.defineProperty;var e4=(o,t,n)=>t in o?Q3(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n;var H=(o,t,n)=>e4(o,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),t4=require("bpmn-js/lib/Modeler"),n4=require("diagram-js-minimap"),o4=require("bpmn-js-create-append-anything"),a4=require("diagram-js-grid-bg"),z=require("bpmn-js/lib/util/ModelUtil"),t0=require("bpmn-js/lib/features/modeling/util/ModelingUtil"),r4=require("bpmn-js/lib/draw/BpmnRenderer"),ue=require("bpmn-js/lib/draw/BpmnRenderUtil"),i4=require("diagram-js/lib/util/SvgTransformUtil"),s4=require("bpmn-js/lib/draw/PathMap"),l4=require("bpmn-js-token-simulation/lib/animation"),c4=require("bpmn-js-token-simulation/lib/features/colored-scopes"),u4=require("bpmn-js-token-simulation/lib/features/context-pads"),d4=require("bpmn-js-token-simulation/lib/features/simulation-state"),p4=require("bpmn-js-token-simulation/lib/features/show-scopes"),m4=require("bpmn-js-token-simulation/lib/features/token-count"),f4=require("bpmn-js-token-simulation/lib/features/exclusive-gateway-settings"),h4=require("bpmn-js-token-simulation/lib/features/inclusive-gateway-settings"),v4=require("bpmn-js-token-simulation/lib/features/palette"),g4=require("bpmn-js-token-simulation/lib/simulator/Scope"),v1=require("bpmn-js-token-simulation/lib/simulator/ScopeTraits"),jn=require("bpmn-js-token-simulation/lib/simulator/util/SetUtil"),g1=require("bpmn-js-token-simulation/lib/simulator/util/EventsUtil"),$e=require("bpmn-js-token-simulation/lib/simulator/util/ModelUtil"),b4=require("bpmn-js-token-simulation/lib/simulator/behaviors"),Qe=require("bpmn-js-token-simulation/lib/util/EventHelper"),Ru=require("bpmn-js-token-simulation/lib/features/scope-filter"),y4=require("bpmn-js-token-simulation/lib/features/element-colors"),E4=require("bpmn-js-token-simulation/lib/features/element-support/ElementSupport"),w4=require("diagram-js/lib/util/EscapeUtil"),C4=require("bpmn-js-token-simulation/lib/features/disable-modeling"),_4=require("bpmn-js-token-simulation/lib/features/editor-actions"),N4=require("bpmn-js-token-simulation/lib/features/keyboard-bindings"),S4=require("bpmn-js-i18n-zh/lib/bpmn-js"),T4=require("diagram-js/lib/command/CommandInterceptor"),k4=require("bpmn-js/lib/features/context-pad/ContextPadProvider"),nt=require("bpmn-js/lib/util/DiUtil"),x4=require("bpmn-js/lib/features/popup-menu/ReplaceMenuProvider"),V4=require("bpmn-js/lib/features/modeling/util/LaneUtil"),b1=require("bpmn-js/lib/features/copy-paste/ModdleCopy"),A4=require("diagram-js/lib/features/popup-menu/PopupMenu");require("bpmn-js-bpmnlint");const Xt=require("@arco-design/web-vue"),D4=require("bpmn-js/lib/util/DrilldownUtil"),R4=require("lucide-vue-next"),Le=require("vue-i18n"),I4=require("diagram-js/lib/util/Collections"),O4=require("dmn-js/lib/NavigatedViewer");function $4(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const n in o)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(o,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:()=>o[n]})}}return t.default=o,Object.freeze(t)}const L4=$4(R4);if(typeof window<"u"){let o=function(){var t=document.body,n=document.getElementById("__svg__icons__dom__");n||(n=document.createElementNS("http://www.w3.org/2000/svg","svg"),n.style.position="absolute",n.style.width="0",n.style.height="0",n.id="__svg__icons__dom__",n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:link","http://www.w3.org/1999/xlink")),n.innerHTML='<symbol   viewBox="0 0 64 64" id="bpmn-empty-state"><defs><rect id="bpmn-empty-state_a" width="57" height="47" x="3" y="8" rx="7" /><mask id="bpmn-empty-state_b" width="57" height="47" x="0" y="0" fill="#fff" maskContentUnits="userSpaceOnUse" maskUnits="objectBoundingBox"><use xlink:href="#bpmn-empty-state_a" /></mask></defs><g fill="none" fill-rule="evenodd"><path fill="#818798" d="M52 11a5 5 0 0 1 5 5v31a5 5 0 0 1-5 5H11a5 5 0 0 1-5-5V16a5 5 0 0 1 5-5h41Zm0 2H11a3 3 0 0 0-2.995 2.824L8 16v31a3 3 0 0 0 2.824 2.995L11 50h41a3 3 0 0 0 2.995-2.824L55 47V16a3 3 0 0 0-2.824-2.995L52 13Z" /><path fill="#D5D7DD" d="M16 24h31v6H16zM21 33h21v6H21z" /><use stroke="currentColor" stroke-dasharray="5 2" stroke-width="2" mask="url(#bpmn-empty-state_b)" xlink:href="#bpmn-empty-state_a" /></g></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-association"><path stroke="currentColor" stroke-width="2" fill="none" stroke-dasharray="3.3,6" stroke-linecap="square" d="m1.5 30.5 29-29" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-business-rule-task"><path d="M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494Zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5ZM5.296 7.398v12.665h16.87V7.398H5.296Zm.718 4.386h15.433v3.44H9.985v-3.432h-.719v3.431H6.014v-3.44Zm0 4.158h3.252v3.403H6.014v-3.403Zm3.97 0h11.463v3.403H9.985v-3.403Z" /><path d="M6.079 8.209v3.587H21.44V8.209z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-call-activity"><path d="M24.978 3c3.761 0 6.89 2.979 7.018 6.695l.004.238V22.4c0 3.747-3.05 6.804-6.783 6.93l-.24.003H7.023c-3.761 0-6.89-2.978-7.018-6.695L0 22.4V9.933C0 6.187 3.05 3.13 6.783 3.004L7.023 3h17.955Zm0 3.667H7.022c-1.842 0-3.255 1.344-3.35 3.079l-.005.187V22.4c0 1.761 1.35 3.167 3.16 3.262l.195.005L10 25.666V15h12v10.666h2.978c1.842 0 3.255-1.344 3.35-3.079l.005-.187V9.933c0-1.761-1.35-3.166-3.16-3.261l-.195-.005Zm-3.732 9.087H10.754v9.912h10.491v-9.912Zm-4.475 1.817v2.658h2.658v1.542H16.77v2.658H15.23V21.77H12.57V20.23h2.658V17.57h1.542Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-collaboration"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M0 0v8.62h32V0H0zm1.655 7.054v-5.37h28.62v5.37H1.656zM0 23.38V32h32v-8.62H0zm1.655 7.054v-5.37h28.62v5.37H1.656z" /><path d="m24 8 4 7h-8l4-7Zm0 2-2.28 4h4.56L24 10ZM23.5 21h1v3h-1zM23.5 15h1v3h-1zM8 24l-4-7h8l-4 7Zm0-2 2.28-4H5.72L8 22ZM7.5 8h1v3h-1zM7.5 14h1v3h-1z" /></g></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-conditional-flow"><path d="M32 .041S20.42 5.95 14.537 8.713c1.26 1.15 2.432 2.392 3.648 3.588-5.703 5.78-3.15 3.303-8.087 8.316l-8.472 1.377L0 32l10.006-1.626.098-.598 1.279-7.873c4.975-5.052 2.403-2.555 8.118-8.346 1.218 1.214 2.43 2.435 3.648 3.648C26.29 11.018 32 .041 32 .041ZM9.603 22.397 8.54 28.91 2.03 29.97l1.061-6.515 6.512-1.058Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-connection"><path d="M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L0 30.734 1.325 32l18.08-18.32c1.227 1.223 2.448 2.453 3.676 3.676C26.247 11.12 32 .06 32 .06Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-data-input-output-association"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-dasharray="1.1,4.3" d="M1.5 30.5 27 5" /><path d="M31.803.197 26.5 16.107l-1.52-1.52 3.783-11.35-11.35 3.783-1.52-1.52z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-data-input"><path d="M20.833 0H3.488v32H28V7.36L20.833 0Zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422Zm1.818.493 5.06 5.196h-5.06V2.311Zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354Zm.808 1.868 3.711 3.487-3.71 3.487V9.329H7.888V7.723h4.283V5.039Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-data-object"><path d="M21.345 0H4v32h24.512V7.36L21.345 0ZM19.24 1.818v7.507h7.454v20.857H5.818V1.818H19.24Zm1.818.493 5.06 5.196h-5.06V2.311Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-data-output"><path d="M20.833 0H3.488v32H28V7.36L20.833 0Zm-2.105 1.818v7.507h7.454v20.857H5.306V1.818h13.422Zm1.818.493 5.06 5.196h-5.06V2.311Zm-9.182.86v3.744H7.081v3.222h4.283v3.743l5.7-5.354-5.7-5.354Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-data-store"><path d="M16.008 1c-3.712 0-7.417.306-10.319.939-1.45.316-2.7.71-3.68 1.226C1.065 3.662.297 4.304.061 5.23a.823.823 0 0 0-.035.15L0 5.502l.017.084c-.012 7.41 0 14.46 0 22.08l.017.082c.203.985.995 1.656 1.975 2.172.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.98-.516 1.772-1.187 1.975-2.172l.017-.082V5.541a.825.825 0 0 0 0-.106v-.016l-.002-.013a.823.823 0 0 0-.046-.197c-.244-.916-1.007-1.55-1.943-2.044-.98-.516-2.23-.91-3.68-1.226C23.423 1.306 19.718 1 16.006 1Zm0 1.646c3.62 0 7.245.308 9.968.901 1.36.297 2.497.67 3.263 1.074.612.323.932.643 1.063.882-.131.24-.451.56-1.063.882-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.901-1.361-.297-2.497-.67-3.264-1.074-.611-.322-.931-.642-1.062-.882.13-.24.451-.56 1.062-.882.767-.403 1.903-.777 3.264-1.074 2.723-.593 6.348-.9 9.968-.9ZM1.664 7.647c.112.067.227.132.345.194.98.517 2.23.91 3.68 1.226 2.902.633 6.607.94 10.319.94 3.711 0 7.416-.307 10.318-.94 1.451-.316 2.701-.71 3.68-1.226.119-.062.234-.127.346-.194v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.671-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93Zm0 4.187c.112.067.227.132.345.195.98.516 2.23.91 3.68 1.226 2.902.632 6.607.938 10.319.938 3.711 0 7.416-.306 10.318-.938 1.451-.317 2.701-.71 3.68-1.226.119-.063.234-.128.346-.195v1.93c-.08.245-.398.619-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.901-9.968.901-3.62 0-7.245-.307-9.968-.9-1.361-.298-2.497-.67-3.264-1.075-.714-.376-1.032-.75-1.112-.995v-1.93Zm0 4.188c.112.067.227.131.345.194.98.516 2.23.91 3.68 1.226 2.902.633 6.607.939 10.319.939 3.711 0 7.416-.306 10.318-.94 1.451-.316 2.701-.709 3.68-1.225.119-.063.234-.127.346-.194V27.47c-.08.245-.398.618-1.113.995-.766.404-1.902.777-3.263 1.074-2.723.594-6.349.9-9.968.9-3.62 0-7.245-.306-9.968-.9-1.361-.297-2.497-.67-3.264-1.074-.714-.377-1.032-.75-1.112-.995V16.022Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-default-flow"><path d="M32 .06S20.33 6.014 14.403 8.798c1.27 1.16 2.451 2.41 3.676 3.616L6.84 23.804H.046v1.755h5.063L0 30.735 1.325 32l6.357-6.441h7.145v-1.756H9.414l9.99-10.123c1.228 1.223 2.45 2.453 3.677 3.676C26.247 11.12 32 .06 32 .06Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-cancel"><path d="M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0 0 15.676.05Zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 0 1 5.592-1.522Zm-3.955 3.918L8.94 12.072l3.985 3.985-3.913 3.913 3.048 3.047 3.913-3.913 3.987 3.987 3.096-3.096-3.987-3.987 3.913-3.913-3.047-3.048-3.913 3.913-3.985-3.985Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-compensation"><path d="M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0 0 15.676.05Zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 0 1 5.592-1.522Zm-.56 5.744-7.407 5.23 7.408 5.234v-5.057c2.384 1.687 4.771 3.371 7.157 5.057V10.801l-7.157 5.054v-5.054Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-error"><path d="M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0 0 15.676.05Zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 0 1 5.592-1.522Zm6.132 4.166-3.633 7.363-4.516-5.874-4.102 12.131 4.599-5.91 4.743 5.427 2.909-13.137Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-escalation"><path d="M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0 0 15.676.05Zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 0 1 5.592-1.522Zm.006 3.9c-1.672 4.653-2.733 9.5-4.406 14.153 1.535-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.497-4.71-2.91-9.445-4.406-14.155Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-link"><path d="M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0 0 15.676 0Zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 0 1 5.592-1.522Zm1.78 4.065v3.555H9.779v6.713h7.994v3.554l5.828-6.91-5.828-6.912Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-message"><path d="M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.532 18.532 0 0 0 15.676 0Zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 0 1 5.592-1.522Zm-5.91 5.448 6.041 4.9 6.04-4.9H10.084Zm-1.34 1.137v9.92h14.513v-9.718l-7.132 5.786-7.381-5.988Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-multiple"><path d="M15.676 0C7.943.007.834 6.45.104 14.16c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 4.958 23.394.313 16.978.032A18.529 18.529 0 0 0 15.676 0Zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 0 1 5.592-1.522Zm.011 3.039-7.619 5.53 2.91 8.95h9.418l2.91-8.95-7.619-5.53Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-none"><path d="M15.84.042C8.654-.01 1.913 5.437.4 12.454-1.057 18.62 1.554 25.495 6.784 29.09c5.076 3.636 12.31 3.92 17.59.544 5.309-3.251 8.435-9.744 7.445-15.921C30.91 7.307 25.795 1.738 19.442.422a16.064 16.064 0 0 0-3.602-.38Zm.382 5.01c5.28-.017 10.13 4.353 10.669 9.61.687 5.025-2.552 10.281-7.423 11.792-4.754 1.617-10.486-.447-12.962-4.856-2.74-4.575-1.574-11.094 2.768-14.27a11.05 11.05 0 0 1 6.948-2.276Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-signal"><path d="M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0 0 15.676.05Zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 0 1 5.592-1.522Zm.006 3.492c-2.261 4.07-4.532 8.136-6.797 12.204h13.595L15.999 8.55Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-end-event-terminate"><path d="M15.676.051C7.943.058.834 6.501.104 14.21c-.783 6.565 2.912 13.427 8.942 16.216 5.6 2.737 12.789 1.87 17.434-2.344 4.725-4.09 6.79-11.06 4.714-17.006C29.22 5.009 23.394.364 16.978.083A18.532 18.532 0 0 0 15.676.05Zm.317 5.006c5.695-.165 10.916 4.858 10.983 10.555.246 5.212-3.67 10.33-8.864 11.204-5.026 1.007-10.6-1.898-12.36-6.777-1.894-4.826.039-10.928 4.649-13.46a11.082 11.082 0 0 1 5.592-1.522Zm.006 2.859c-5.264-.2-9.495 5.551-7.755 10.516 1.366 5.085 8.108 7.436 12.339 4.301 4.455-2.807 4.708-9.943.462-13.058A8.128 8.128 0 0 0 16 7.915Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-event-subprocess-expanded"><path d="M7.295 4.78h1.779V3.003h-1.78V4.78Zm3.558 0h1.779V3.003h-1.78V4.78Zm3.557 0h1.78V3.003h-1.78V4.78Zm3.558 0h1.78V3.003h-1.78V4.78Zm3.558 0h1.779V3.003h-1.779V4.78Zm3.558 0c.55.014 1.106-.034 1.654.045l.245-1.762c-.629-.096-1.266-.05-1.9-.061V4.78ZM5.732 3.004a5.933 5.933 0 0 0-.915.093c.111.582.226 1.164.315 1.75.358-.101.947.098.746-.483-.096-.382.164-1.208-.146-1.36Zm22.372 2.281c.427.234.812.547 1.13.915.42-.4 1.002-.777 1.33-1.18a5.863 5.863 0 0 0-1.593-1.289l-.867 1.554Zm-25.27-1.44c-.587.354-1.11.811-1.539 1.345.47.333.96.86 1.417 1.077.299-.362.66-.673 1.065-.913-.328-.493-.55-1.055-.944-1.509ZM30.515 7.26c-.563.046-.557.342-.378.784.154.25-.097.862.25.85.525-.023 1.14.043 1.612-.032a5.891 5.891 0 0 0-.362-2.027l-1.122.425ZM.268 7.114A6.042 6.042 0 0 0 0 9.052h1.78c-.013-.5.047-1.003.208-1.478L.296 7.027l-.026.079-.002.008ZM30.22 12.45H32v-1.779h-1.779v1.779Zm-30.22.16h1.78v-1.779H0v1.78Zm30.22 3.398H32v-1.78h-1.779v1.78Zm-30.22.16h1.78v-1.779H0v1.779Zm30.22 3.398H32v-1.78h-1.779v1.78Zm-30.22.16h1.78v-1.78H0v1.78Zm30.22 3.397H32v-1.779h-1.779v1.78Zm-30.22.16h1.78v-1.778H0v1.778Zm30.137 1.47a4.059 4.059 0 0 1-.522 1.32c.506.283 1.046.715 1.53.908a5.836 5.836 0 0 0 .744-1.918c-.576-.094-1.209-.264-1.752-.31Zm-29.984.51c.157.676.435 1.325.82 1.904l1.486-.977a4.065 4.065 0 0 1-.577-1.347l-1.73.42Zm28.427 1.943c-.371.277-.79.49-1.234.627l.548 1.693a5.84 5.84 0 0 0 1.835-.96l-1.082-1.412-.066.05-.001.002Zm-26.164 1.47c.567.413 1.21.722 1.886.907.14-.569.343-1.175.444-1.722a4.062 4.062 0 0 1-1.283-.624l-1.047 1.438Zm3.88 1.119h1.779v-1.78h-1.78v1.78Zm3.55 0h1.787v-1.78H9.846v1.78Zm3.565 0h1.78v-1.78h-1.78v1.78Zm3.558 0h1.78v-1.78h-1.78v1.78Zm3.451 0h1.743v-1.78h-1.743v1.78Zm3.665 0h1.779v-1.78h-1.78v1.78Zm-1.922-.545V16.776H9.846V29.25h12.318ZM10.967 17.905h10.068V27.97H10.967V17.905Zm1.336 3.998v1.711h7.396v-1.711h-7.396Z" opacity=".97" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-gateway-complex"><path d="M16.001 0a1.29 1.29 0 0 0-.917.373L.373 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.917.372A1.294 1.294 0 0 0 16.002 0ZM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18Zm-.327 6.79v.007l-.145.027-.118.08-.083.123-.028.145v4.954L11.793 10.8l-.125-.08-.14-.029-.144.027-.122.082-.46.46-.085.125-.026.142.028.14.08.125 3.505 3.505H9.347l-.001-.002-.145.032-.118.08-.083.122-.028.146v.652l.029.147.082.119.12.08.144.032h4.956L10.8 20.207v-.001l-.084.124-.026.142.028.14.08.124.46.461.126.082.14.029.143-.027.124-.084L15.3 17.69v4.964-.001l.028.147.082.12.12.08.144.031h.652l.148-.03.118-.08.083-.12.028-.146v-4.962l3.505 3.505.126.082.14.027.142-.027.124-.084.461-.46.083-.123s.028-.144.027-.146l-.028-.14-.082-.126-3.496-3.496h4.948l.148-.03.119-.08.082-.12.028-.147v-.652l-.028-.145-.083-.122-.119-.08s-.147-.033-.147-.031h-4.964l3.512-3.512.082-.122.029-.144-.028-.14-.084-.124-.46-.461-.123-.082-.14-.027-.145.027-.122.082-3.507 3.507V9.348l-.028-.146-.082-.122-.12-.08-.147-.029h-.652Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-gateway-eventbased"><path d="M16 0a1.29 1.29 0 0 0-.918.373L.371 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.915.372A1.294 1.294 0 0 0 16 0Zm-.002 2.181 13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18Zm0 5.876-.254.185-7.377 5.355 2.915 8.964h9.433l2.915-8.964-7.631-5.54Zm0 1.07 6.614 4.8-2.526 7.769h-8.175l-2.526-7.768 6.614-4.802Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-gateway-none"><path d="M.373 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.917.373a1.313 1.313 0 0 0-1.833 0L.373 15.084Zm1.806.918L16 2.182l13.821 13.82L16 29.823 2.179 16.003Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-gateway-or"><path d="M16.001 0a1.29 1.29 0 0 0-.917.373L.373 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.917.372A1.294 1.294 0 0 0 16.002 0ZM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18Zm0 6.379a7.447 7.447 0 0 0-7.44 7.441A7.447 7.447 0 0 0 16 23.443 7.447 7.447 0 0 0 23.443 16a7.447 7.447 0 0 0-7.441-7.441Zm0 .825a6.61 6.61 0 0 1 6.617 6.616A6.61 6.61 0 0 1 16 22.618 6.61 6.61 0 0 1 9.385 16 6.61 6.61 0 0 1 16 9.385Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-gateway-parallel"><path d="M16.001 0a1.29 1.29 0 0 0-.917.373L.373 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.917.372A1.294 1.294 0 0 0 16.002 0ZM16 2.181l13.821 13.821L16 29.823 2.179 16.003 16 2.18Zm-.377 5.708-.168.032-.136.092-.096.14-.032.168v6.868h-6.87l-.002-.002-.166.037-.137.092v-.002l-.095.141-.033.167v.753s.032.169.034.17l.094.138.138.092.167.036h6.87v6.867l-.001-.001.033.17.095.138.138.092s.166.035.167.037h.752l.17-.036.137-.092.095-.137.033-.17v-6.867h6.868l.17-.035.137-.092.095-.137.033-.17v-.753s-.033-.165-.032-.167l-.096-.14-.138-.093s-.17-.037-.17-.035H16.81V8.323l-.033-.168-.094-.14-.138-.092-.17-.034h-.752Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-gateway-xor"><path d="M16 0a1.29 1.29 0 0 0-.918.373L.371 15.084a1.316 1.316 0 0 0 .002 1.834l14.71 14.709a1.313 1.313 0 0 0 1.833 0l14.711-14.711a1.316 1.316 0 0 0-.002-1.834L16.915.372A1.294 1.294 0 0 0 16 0Zm-.002 2.181 13.821 13.821-13.821 13.821-13.821-13.82L15.998 2.18Zm-5.162 7.69-.166.032-.141.096-.532.532s-.097.142-.097.144l-.03.164.032.162.093.144 4.857 4.858-4.855 4.855v-.001L9.9 21l-.03.164.032.162s.093.142.093.144l.531.532.146.095.162.032.164-.03.144-.097 4.855-4.856 4.857 4.857.145.095.162.032.164-.03.144-.097.531-.532.095-.14.033-.168-.033-.162-.095-.146L17.144 16 22 11.144l.095-.14.033-.166-.033-.163-.097-.144-.532-.532-.14-.095-.163-.032-.166.032-.141.095L16 14.855l-4.858-4.858v-.002l-.144-.092-.162-.032Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-group"><path d="M6.34.016c-2.333.025-4.684 1.77-5.29 4.17C.608 5.848.88 7.608.804 9.314v2.922h2.041c.038-2.332-.076-4.673.062-7C3.14 3.355 4.869 1.938 6.643 2.04h8.956V.009c-3.086 0-6.173-.02-9.258 0v.007Zm13.094 2.023h1.92V.009h-1.92v2.03Zm5.756 0c1.265-.069 2.66.045 3.602 1.055 1.036.983 1.201 2.523 1.122 3.91v6.313h2.078c-.03-2.677.062-5.36-.047-8.032-.17-2.743-2.62-5.111-5.215-5.236-.511-.064-1.027-.02-1.54-.033v2.023ZM.803 18.319h2.041v-2.026H.804v2.026Zm29.11 1.084h2.08v-2.03h-2.08v2.03ZM.804 26.148c.004 2.218 1.393 4.366 3.313 5.28 1.728.853 3.681.448 5.521.544.43-.112 1.29.231 1.435-.183v-1.847c-1.788-.043-3.584.094-5.365-.082-1.67-.354-2.919-2.048-2.863-3.844v-3.644H.804v3.777Zm29.11-.068c.04 1.961-1.508 3.787-3.381 3.842-1.954.06-3.914.02-5.87.026v2.03c2.118-.042 4.242.08 6.355-.063 2.524-.264 4.818-2.644 4.94-5.323.08-1.039.014-2.085.035-3.126h-2.078v2.613Zm-15.006 5.898h1.92v-2.03h-1.92v2.03Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-cancel"><path d="M15.975.049C8.195-.111.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.454 17.201.095c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22ZM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0 1 16 5.021Zm-3.956 3.946-3.096 3.097 3.985 3.985-3.913 3.913 3.047 3.048 3.913-3.913 3.988 3.987 3.097-3.096L19.076 16l3.914-3.913-3.048-3.048-3.913 3.913-3.986-3.985Zm-.002 1.222 3.988 3.987 3.913-3.913 1.826 1.826-3.913 3.913 3.985 3.986-1.873 1.873-3.985-3.985-3.913 3.913-1.827-1.827 3.914-3.913-3.988-3.987 1.873-1.873Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-compensation"><path d="M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 5.021Zm-.56 5.772-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.793l-7.157 5.055v-5.055Zm-.865 1.665v7.125l-5.048-3.562 5.048-3.563Zm7.161 0v7.132l-5.048-3.566 5.048-3.566Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-condition"><path d="M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0 0 15.97.04Zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838Zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428Zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 0 1 6.735-2.294Zm-5.352 4.266V22.761h10.716V9.279H10.642Zm.863.866h8.987v11.75h-8.987v-11.75Zm.927 1.323v.862h7.133v-.862h-7.133Zm0 2.602v.866h7.133v-.866h-7.133Zm0 3.008v.862h7.133v-.862h-7.133Zm0 2.717v.863h7.133v-.863h-7.133Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-error"><path d="M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 5.021Zm6.132 4.194c-1.21 2.455-2.422 4.91-3.633 7.364l-4.516-5.875-4.103 12.133 4.6-5.912c1.58 1.81 3.162 3.619 4.744 5.429L22.13 9.215ZM14.383 13.1l4.295 5.445 1.073-2.387-1.027 4.131-4.384-5.157-1.778 2.75 1.821-4.782Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-escalation"><path d="M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 5.021Zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156Zm.032 2.929c.822 2.586 1.598 5.186 2.42 7.771l-2.42-2.612c-.682.597-2.452 2.884-2.338 2.388.87-2.487 1.447-5.067 2.338-7.547Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-link"><path d="M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 5.021Zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912Zm.974 2.584 3.61 4.295-3.61 4.294v-1.933h-7.88v-4.688h7.88v-1.968Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-message"><path d="M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 5.021Zm-7.245 5.475v11.06h14.502v-11.06H8.754Zm3.222 1.728h8.057c-1.427.878-2.854 2.806-4.281 3.016l-3.776-3.016Zm9.554 1.017v6.587H10.48V13.24l5.524 4.414 5.526-4.414Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-multiple"><path d="M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 4.975Zm.006 3.073-7.62 5.531 2.91 8.95h9.42l2.91-8.95-7.62-5.53Zm0 1.067 6.604 4.794-2.523 7.757h-8.162l-2.522-7.757 6.603-4.794Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-non-interrupting-condition"><path d="M10.638 9.563V23.056h10.724V9.563H10.638Zm.863.866h8.995v11.76H11.5V10.43Zm.928 1.324v.862h7.139v-.862h-7.14Zm0 2.605v.866h7.139v-.866h-7.14Zm0 3.01v.863h7.139v-.863h-7.14Zm0 2.72v.863h7.139v-.864h-7.14ZM15.999.308h-.004l-.188.001h-.011l-.188.004h-.011L15.41.32h-.011l-.187.008h-.005L15.2.33l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.37h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003.178-.001h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 1.023l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.62h-.005l-.005-.002-.182-.035h-.006L18.938.58l-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.43 17.783.41l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.37h-.005L17.38.368l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.328h-.011L16.6.32h-.011l-.187-.006h-.011L16.204.31h-.011L16.005.31H16Zm9.016 2.935-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027Zm-18.381.344-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003L4.682 5l-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023ZM16 3.595h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01L16.32 3.6h-.011l-.147-.003h-.011l-.147-.001H16Zm-5.482 1.366-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022Zm13.91 2.116-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023ZM4.45 13.135l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029Zm26.698 1.601-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187V16.7l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02Zm-30.21.572-.161.001-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158-.074-.155-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178-.001-.177v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057-.159-.028Zm26.798 2.024-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14v-.005l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022ZM6.841 23.019l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006Zm15.063 2.701-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016ZM6.33 27.127l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006Zm19.215.087-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-non-interrupting-escalation"><path d="M16.012 9.222c-1.673 4.657-2.735 9.508-4.409 14.164 1.536-1.526 2.874-3.236 4.41-4.762l4.408 4.762c-1.497-4.712-2.911-9.451-4.409-14.164Zm.032 2.93c.823 2.588 1.599 5.19 2.421 7.777l-2.42-2.614c-.683.598-2.454 2.886-2.34 2.39.871-2.489 1.448-5.07 2.34-7.552ZM16.012.312c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311Zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 0 0-5.06-6.006c-.1-.044-.203-.07-.31-.082ZM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 0 1 4.327-5.56c.476-.515.09-1.419-.612-1.431Zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094Zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478Zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 0 0-.453-.153ZM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 0 1-.334-5.808.874.874 0 0 0-.794-.865Zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 0 0 1.821-8.372.876.876 0 0 0-.812-.667Zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 0 1-1.603-6.861.876.876 0 0 0-.778-.707Zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 0 0-.825-.835ZM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 0 1-4.723-3.396.899.899 0 0 0-.599-.197Zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521ZM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 0 1-6.345-3.066.929.929 0 0 0-.466-.107Zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-non-interrupting-message"><path d="M8.742 10.464v11.072h14.516V10.464H8.742Zm3.224 1.73h8.066a69569 69569 0 0 0-4.034 3.22l-4.032-3.22Zm9.565 1.018v6.594H10.469v-6.593L16 17.63l5.532-4.419ZM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16Zm9.015 2.935-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027ZM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023ZM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16Zm-5.482 1.366-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022Zm13.91 2.116-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023ZM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029Zm26.698 1.601-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02ZM.938 15 .777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15Zm26.798 2.024-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022ZM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006Zm15.063 2.701-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016ZM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006Zm19.215.087-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-non-interrupting-multiple"><path d="m23.637 13.902-7.625-5.535-7.624 5.535 2.912 8.956h9.425l2.912-8.956Zm-1.017.33-2.524 7.762H11.93l-2.524-7.762 6.607-4.796 6.608 4.796ZM16.012.311c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311Zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 0 0-5.06-6.006c-.1-.044-.203-.07-.31-.082ZM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 0 1 4.327-5.56c.476-.515.09-1.419-.612-1.431Zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094Zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478Zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 0 0-.453-.153ZM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 0 1-.334-5.808.874.874 0 0 0-.794-.865Zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 0 0 1.821-8.372.876.876 0 0 0-.812-.667Zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 0 1-1.603-6.861.876.876 0 0 0-.778-.707Zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 0 0-.825-.835ZM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 0 1-4.723-3.396.899.899 0 0 0-.599-.197Zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521ZM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 0 1-6.345-3.066.929.929 0 0 0-.466-.107Zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-non-interrupting-parallel"><path d="M13.51 9.081v4.428H9.08v4.982h4.428v4.428h4.982V18.49h4.428v-4.982H18.49V9.081h-4.982Zm.83.83h3.32v4.428h4.429v3.322H17.66v4.428h-3.32v-4.454H9.91v-3.296h4.428V9.911ZM16 0h-.005l-.188.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.011L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.185.027h-.005l-.005.001-.184.029h-.005l-.005.001-.183.031-.006.001-.005.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.176.027.17.03.174.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.087-.135.061-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.145-.073-.128-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.006-.001-.183-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06h-.005L17.38.06l-.187-.015h-.005l-.005-.001-.187-.013h-.011L16.8.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0H16Zm9.015 2.935-.16.004-.158.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.126.125.124.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.084.152.084.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.16-.016.155-.046.144-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.003-.005-.002-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.003-.005-.101-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.005-.003-.004-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.004-.004-.003-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.004-.004-.132-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027ZM6.634 3.28l-.161.008-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.004-.003.005-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.004-.003.005-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023ZM16 3.286h-.005l-.148.001h-.01l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.047.12.048.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.139-.107-.12-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.006-.002-.005-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.142-.031-.005-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.002-.143-.025-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.011l-.147-.001H16Zm-5.482 1.366-.16.008-.157.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.005.003-.004.004-.11.096-.004.004-.004.003-.11.098-.003.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.004.004-.003.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.004-.086.118-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.03.15-.057.138-.085.119-.109.082-.105.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022Zm13.91 2.116-.162.008-.157.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.025.159.055.152.082.138.086.103.09.09.094.098.092.099.093.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.114.068.118.067.115.065.118.064.117.062.117.061.121.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.048.127.047.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.085.137.11.119.129.096.145.07.155.043.16.013.161-.017.154-.046.144-.075.126-.1.106-.12.082-.14.055-.151.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.06-.132-.001-.005-.002-.004-.061-.132-.003-.004-.002-.005-.063-.13-.002-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.074-.125-.002-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.081-.12-.003-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.118-.003-.004-.004-.004-.087-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.094-.113-.003-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.11-.004-.003-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023ZM4.45 12.826l-.161.002-.158.032-.15.06-.135.088-.118.11-.094.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.005-.019.145v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.005l-.001.006-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.005.033.142v.005l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.104.102-.125.076-.142.049-.153.02-.16-.011-.161-.031-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.133-.024-.133-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.133.01-.138.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029Zm26.698 1.601-.161.01-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.025.175-.026.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.16-.062.165-.062.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.079.158-.08.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.119.13.097.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.005.002-.004.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.171.001-.005.002-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.181.001-.005.001-.005.037-.182.002-.005v-.005l.036-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02ZM.938 15 .777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.004.074.17.002.005.002.004.076.169.002.004.002.005.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.157-.07-.16-.068-.16-.067-.165-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15Zm26.798 2.024-.16.007-.157.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.133-.026.133-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.063.119-.062.116-.067.119-.066.116-.069.115-.069.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.107-.085.11-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.081-.12.003-.005.003-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.005.003-.004.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.002-.005.003-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.001-.006.042-.138.001-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.142.001-.005.001-.005.031-.141.001-.006.002-.005.029-.142v-.005l.002-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022ZM6.841 22.71l-.16.024-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.109.04.048.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.105.004.004.004.004.103.105.004.004.004.003.105.104.003.004.004.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.004.003.005.004.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.002.126.073.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.067.005.003.004.002.13.066.004.002.005.003.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.002.133.057.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.16-.015.156-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.159-.061-.149-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.08-.11-.08-.109-.081-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006Zm15.063 2.701-.16.014-.156.044-.12.057-.06.034-.12.066-.117.064-.118.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.035-.13.036-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021.005-.001h.006l.143-.023.006-.001h.005l.143-.025h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.037h.005l.005-.002.14-.038.005-.002h.005l.14-.04.005-.002.005-.001.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.057.005-.002.005-.002.132-.057.005-.003.005-.002.132-.06.005-.001.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.003.005-.002.128-.066.005-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.003.065-.037.132-.093.112-.115.089-.135.062-.149.034-.157.003-.161-.026-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.046-.16-.016ZM6.33 26.818l-.16.023-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.004.003.005.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.002.162.088.005.003.004.002.164.086.005.003.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.168.076.005.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.06.005.003.005.001.175.06.005.001.005.002.176.057.005.001.005.002.176.055.006.001.005.002.177.052.005.002.005.001.178.05.005.002.005.002.178.048.006.001.005.002.179.046.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.17-.044-.168-.046-.167-.047-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006Zm19.215.087-.16.01-.157.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.158.073-.157.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.047-.17.046-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.007.133-.016.115-.024.005-.001.005-.001.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002.005-.001.18-.046.004-.002h.005l.179-.05h.005l.005-.002.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.004-.002.005-.002.172-.068.005-.002.005-.002.171-.07.005-.001.005-.002.17-.072.005-.002.004-.002.17-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.003.167-.08.004-.002.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.003.163-.086.005-.002.005-.003.162-.088.005-.002.005-.003.161-.09.005-.002.004-.003.16-.092.005-.003.005-.002.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.003.155-.101.005-.003.004-.003.154-.104.004-.003.004-.003.153-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.112.004-.003.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02Z" opacity=".98" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-non-interrupting-signal"><path d="M16.012 8.816 9.21 21.026h13.606l-6.803-12.21Zm0 1.776 5.332 9.57H10.681l5.331-9.57Zm0-10.281c-1.448.02-2.93.157-4.302.628-.852.447-.255 1.863.66 1.574 2.255-.608 4.648-.607 6.922-.108.934.075 1.228-1.376.338-1.67C18.451.44 17.227.317 16.012.311Zm9.012 2.934c-.913-.104-1.272 1.258-.454 1.648 1.834 1.36 3.293 3.185 4.31 5.22.526.776 1.842.098 1.515-.78a15.522 15.522 0 0 0-5.06-6.006c-.1-.044-.203-.07-.31-.082ZM6.65 3.59c-.762.089-1.24.809-1.805 1.267C3.38 6.295 2.163 8.007 1.37 9.905c-.266.898 1.094 1.484 1.564.675a14.825 14.825 0 0 1 4.327-5.56c.476-.515.09-1.419-.612-1.431Zm9.362.007c-.698.066-1.689-.16-2.033.635-.282.733.535 1.358 1.217 1.125 1.806-.147 3.63.203 5.293.907.902.255 1.472-1.112.656-1.573-1.6-.735-3.374-1.089-5.133-1.094Zm-5.479 1.365c-.835.15-1.517.76-2.21 1.226-1.203.94-2.318 2.061-3.057 3.402-.33.904 1.063 1.552 1.547.723 1.045-1.656 2.596-2.925 4.285-3.873.545-.499.171-1.463-.565-1.478Zm13.903 2.115c-.875-.07-1.22 1.173-.501 1.627 1.325 1.34 2.188 3.062 2.748 4.84.468.84 1.869.21 1.557-.699-.604-2.118-1.751-4.097-3.351-5.615a.93.93 0 0 0-.453-.153ZM4.467 13.132c-.822-.07-.996.826-1.046 1.455-.256 1.93-.094 3.933.562 5.769.406.844 1.807.365 1.612-.551a11.498 11.498 0 0 1-.334-5.808.874.874 0 0 0-.794-.865Zm26.687 1.6c-.746-.037-1.014.785-.879 1.395.043 2.393-.57 4.771-1.66 6.894-.31.884 1.02 1.536 1.53.75a15.632 15.632 0 0 0 1.821-8.372.876.876 0 0 0-.812-.667Zm-30.197.571c-.782-.073-1.044.775-.933 1.404.068 2.414.661 4.833 1.809 6.962.534.77 1.842.076 1.505-.798a14.833 14.833 0 0 1-1.603-6.861.876.876 0 0 0-.778-.707Zm26.787 2.024c-.777-.048-.952.797-1.021 1.392-.354 1.692-1.202 3.231-2.216 4.608-.407.872.925 1.638 1.48.852 1.361-1.733 2.296-3.827 2.582-6.017a.874.874 0 0 0-.825-.835ZM6.857 23.012c-.808.018-1.082 1.122-.47 1.59 1.393 1.607 3.187 2.886 5.194 3.599.91.222 1.43-1.165.598-1.596a11.495 11.495 0 0 1-4.723-3.396.899.899 0 0 0-.599-.197Zm15.057 2.7c-.81.194-1.504.76-2.325.972-1.203.458-2.5.536-3.758.664-.869.307-.573 1.728.346 1.663 2.201-.034 4.412-.626 6.293-1.778.604-.495.227-1.532-.556-1.521ZM6.346 27.118c-.833.008-1.11 1.218-.395 1.617 1.986 1.602 4.358 2.749 6.868 3.226.933.076 1.227-1.376.338-1.67a14.838 14.838 0 0 1-6.345-3.066.929.929 0 0 0-.466-.107Zm19.208.087c-.766.09-1.241.841-1.922 1.158-1.516.991-3.251 1.58-4.996 2.005-.872.405-.346 1.849.584 1.604 2.543-.526 4.98-1.66 6.963-3.344.47-.52.072-1.42-.63-1.423Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-non-interrupting-timer"><path d="M15.998 8.406c-3.018-.041-5.92 1.926-7.031 4.727-1.138 2.695-.51 6.012 1.537 8.103 1.99 2.141 5.268 2.93 8.014 1.927 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.88-4.3-7.137a7.552 7.552 0 0 0-3.288-.75Zm0 1.384c2.759-.052 5.373 1.973 6.015 4.655.704 2.578-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.086-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86Zm1.962 1.765-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.615c-.252-.14-.505-.278-.757-.417Zm-1.965-8.268h-.158l-.147.003h-.011l-.147.005h-.011l-.146.007h-.011l-.146.009h-.011l-.146.01h-.005l-.005.001-.146.012h-.011l-.145.014h-.006l-.005.001-.05.006-.158.031-.15.06-.135.088-.117.111-.094.13-.069.147-.04.156-.01.16.019.16.049.154.076.142.102.125.123.105.14.08.152.051.16.023.134-.003.045-.005.135-.013.133-.01.136-.01.135-.007.137-.006.136-.004.136-.003h.274l.136.003.136.004.136.006.136.007.136.01.133.01.135.013.135.014.135.016.134.018.132.018.134.021.133.023.133.024.133.025.13.027.132.03.132.03.129.031.13.034.129.035.129.036.13.04.126.038.128.042.126.042.128.045.127.047.126.048.12.047.127.051.123.052.006.002.147.048.16.021.16-.009.157-.038.147-.067.131-.093.112-.116.089-.135.062-.149.033-.158.004-.16-.027-.16-.055-.151-.083-.138-.107-.121-.127-.099-.118-.063-.004-.001-.005-.003-.005-.002-.133-.056-.005-.002-.005-.002-.134-.054-.004-.002-.005-.002-.135-.053-.005-.002-.005-.002-.135-.051-.005-.002-.005-.002-.135-.05-.005-.001-.005-.002-.137-.048-.005-.001-.005-.002-.137-.046-.005-.002-.005-.002-.137-.044-.005-.002-.005-.001-.138-.043-.005-.002-.006-.001-.138-.042-.005-.001-.005-.002-.14-.04H19.4l-.005-.002-.14-.038-.005-.001-.005-.002-.14-.036-.005-.001-.005-.001-.141-.035-.005-.001-.005-.001-.142-.033-.005-.001-.005-.001-.141-.031-.006-.002h-.005l-.142-.03-.005-.001-.005-.001-.143-.028h-.005l-.005-.001-.143-.026-.006-.001-.005-.001-.143-.024-.005-.001-.006-.001-.143-.022-.006-.001h-.005l-.144-.022h-.005l-.006-.001-.144-.019h-.005l-.006-.001-.144-.017h-.006l-.005-.001-.145-.016h-.011l-.145-.014H17.1l-.005-.001-.146-.012h-.01l-.146-.01-.006-.001h-.005l-.146-.009h-.011l-.147-.006h-.01l-.147-.005h-.011l-.147-.003h-.01l-.148-.001h-.01ZM10.357 4.66l-.156.037-.123.053-.06.032-.005.002-.004.003-.128.069-.004.002-.005.003-.126.07-.005.003-.004.002-.126.072-.005.003-.004.003-.125.073-.004.003-.005.003-.124.075-.004.003-.005.002-.123.077-.004.003-.005.003-.122.078-.004.003-.005.003-.121.08-.004.002-.005.003-.12.082-.005.003-.004.003-.12.083-.004.003-.004.003-.118.084-.005.003-.004.003-.118.086-.004.003-.004.003-.117.088-.004.003-.004.003-.116.089-.004.003-.004.004-.114.09-.005.003-.004.003-.113.092-.004.004-.004.003-.113.093-.004.004-.004.003-.111.095-.004.003-.005.004-.11.096-.004.004-.004.003-.109.098-.004.003-.004.004-.108.1-.004.003-.004.003-.107.101-.004.004-.004.003-.106.102-.003.004-.004.004-.105.103-.004.004-.004.004-.103.105-.004.004-.004.003-.102.106-.003.004-.004.004-.1.107-.004.004-.004.004-.099.108-.004.004-.003.004-.098.11-.003.003-.004.004-.096.11-.004.005-.003.004-.095.111-.003.004-.004.004-.093.113-.003.004-.004.004-.092.113-.003.004-.003.005-.09.114-.004.004-.003.004-.089.116-.003.004-.003.004-.088.117-.003.004-.003.005-.086.117-.003.004-.003.005-.084.118-.003.004-.003.005-.083.12-.003.003-.003.005-.082.12-.003.005-.002.004-.068.103-.076.142-.048.154-.018.16.011.161.041.156.07.146.095.13.117.11.136.086.15.06.158.03.162.002.158-.029.15-.058.138-.085.119-.108.082-.106.065-.099.075-.11.077-.113.077-.107.08-.11.08-.108.084-.108.083-.105.086-.106.086-.104.088-.104.089-.101.09-.102.093-.101.093-.099.094-.097.095-.096.098-.097.098-.095.099-.093.1-.092.103-.091.101-.089.104-.088.104-.086.106-.086.106-.083.106-.082.109-.082.108-.079.11-.078.11-.076.112-.076.112-.074.113-.072.113-.071.115-.07.115-.068.118-.067.117-.065.12-.065.054-.029.135-.088.116-.111.094-.132.068-.146.04-.156.009-.161-.02-.16-.05-.153-.078-.142-.102-.125-.123-.103-.141-.079-.153-.051-.16-.022-.16.008Zm13.91 2.116-.158.037-.147.066-.132.092-.113.116-.09.134-.063.148-.034.157-.005.162.026.159.054.152.082.139.086.102.09.09.094.098.093.099.092.1.091.103.089.101.088.104.086.104.086.106.083.105.083.108.08.108.081.11.077.107.077.112.075.111.075.114.072.113.071.113.07.115.068.117.067.115.065.118.064.117.062.118.061.12.059.119.059.122.056.121.054.12.055.125.051.123.051.125.048.123.049.127.046.126.044.125.043.128.042.129.039.126.038.13.022.076.058.15.086.137.109.119.129.096.145.07.155.043.16.013.161-.017.155-.046.143-.074.126-.1.106-.122.082-.138.055-.152.025-.16-.005-.16-.026-.132-.023-.082-.002-.005-.001-.005-.042-.139-.001-.005-.002-.005-.043-.138-.001-.005-.002-.005-.044-.137-.002-.005-.002-.005-.046-.137-.002-.005-.001-.005-.048-.137-.002-.005-.002-.005-.05-.135-.001-.005-.002-.005-.051-.135-.002-.005-.002-.005-.053-.135-.002-.005-.002-.005-.054-.133-.002-.005-.002-.005-.057-.133-.002-.005-.002-.005-.057-.132-.003-.005-.002-.005-.059-.132-.002-.005-.002-.004-.061-.132-.003-.004-.002-.005-.062-.13-.003-.005-.002-.005-.064-.13-.003-.004-.002-.005-.066-.129-.002-.004-.003-.005-.067-.128-.002-.005-.003-.004-.069-.128-.002-.004-.003-.005-.07-.126-.003-.005-.003-.004-.072-.126-.002-.005-.003-.004-.073-.125-.003-.004-.003-.005-.075-.124-.003-.004-.003-.005-.076-.123-.003-.004-.003-.005-.078-.122-.003-.004-.003-.005-.08-.121-.003-.004-.003-.005-.08-.12-.004-.005-.003-.004-.083-.12-.003-.004-.003-.004-.084-.118-.003-.005-.003-.004-.086-.117-.003-.005-.003-.004-.088-.117-.003-.004-.003-.004-.09-.116-.002-.004-.004-.004-.09-.114-.003-.005-.004-.004-.091-.113-.004-.004-.003-.004-.093-.113-.004-.004-.003-.004-.095-.111-.004-.004-.003-.004-.096-.11-.004-.005-.003-.004-.098-.109-.004-.004-.003-.004-.1-.108-.003-.004-.004-.004-.1-.107-.004-.004-.004-.004-.102-.106-.003-.003-.004-.004-.093-.095-.124-.103-.14-.08-.153-.05-.16-.023-.16.008ZM4.288 12.828l-.158.032-.15.06-.135.088-.117.11-.095.131-.069.146-.035.129-.026.132v.005l-.002.005-.025.143-.001.005-.001.006-.024.143-.001.005-.001.006-.022.143-.001.006-.001.005-.02.144-.001.005-.001.006-.019.144v.005l-.001.006-.017.144v.006l-.001.005-.016.145v.011l-.014.145v.006l-.001.005-.012.146v.01l-.01.146-.001.006v.005l-.009.146v.011l-.007.146v.011l-.004.147v.011l-.003.147v.01l-.002.148v.01l.001.148v.01l.003.147v.011l.005.147v.01l.007.147v.011l.009.146v.011l.01.146v.01l.013.146v.011l.014.145v.005l.001.006.016.145v.011l.018.144v.006l.001.005.019.144v.006l.001.005.021.144v.005l.002.006.022.143v.006l.002.005.024.143v.005l.002.006.025.143.001.005.001.005.028.143.001.005.001.005.03.142v.005l.002.006.03.141.002.005.001.006.033.14v.006l.002.005.035.14v.006l.002.005.036.14.002.005.001.005.038.14.001.005.002.005.04.14v.005l.002.005.042.138.001.006.002.005.042.138.002.005.002.005.017.054.064.148.09.134.114.114.132.092.148.065.157.037.16.007.16-.023.153-.052.14-.08.123-.103.102-.126.076-.142.049-.153.02-.16-.01-.161-.032-.13-.017-.051-.039-.126-.038-.13-.037-.128-.035-.13-.033-.128-.033-.134-.03-.13-.029-.131-.026-.13-.026-.132-.024-.134-.023-.133-.02-.132-.02-.136-.017-.132-.016-.135-.014-.135-.012-.133-.012-.138-.009-.133-.007-.136-.006-.138-.004-.134-.003-.136v-.274l.003-.136.004-.134.006-.139.007-.136.01-.132.01-.139.013-.132.014-.135.016-.135.017-.132.02-.137.02-.13.023-.134.024-.133.024-.126.016-.16-.014-.161-.044-.155-.072-.145-.098-.128-.12-.108-.137-.084-.15-.057-.16-.029-.16.002Zm23.286 4.202-.156.038-.148.066-.132.092-.113.115-.09.134-.062.148-.03.127-.001.004-.023.134-.024.134-.026.132-.026.13-.03.132-.03.129-.032.134-.033.128-.035.13-.037.128-.038.13-.04.126-.04.128-.044.128-.044.126-.046.126-.048.126-.05.125-.05.125-.051.122-.054.123-.055.122-.056.12-.058.122-.06.12-.061.12-.062.119-.063.116-.067.119-.066.116-.068.115-.07.115-.07.113-.073.113-.074.112-.076.113-.077.112-.077.107-.08.11-.08.108-.085.109-.044.056-.088.135-.06.15-.033.158-.002.16.027.16.057.15.083.138.108.12.128.098.144.072.155.045.16.015.161-.016.155-.044.144-.073.128-.098.09-.099.05-.061.003-.004.003-.005.089-.115.003-.004.003-.005.088-.116.003-.004.003-.005.086-.117.003-.004.003-.005.084-.118.003-.004.003-.005.083-.12.003-.004.003-.004.082-.12.003-.005.002-.004.08-.121.003-.005.003-.004.078-.122.003-.005.003-.004.077-.123.002-.005.003-.004.075-.124.003-.005.003-.004.073-.125.003-.004.003-.005.072-.126.002-.004.003-.005.07-.126.003-.005.002-.005.07-.127.002-.004.002-.005.068-.128.002-.005.002-.004.066-.13.003-.004.002-.005.064-.13.002-.004.003-.005.062-.13.003-.005.002-.005.06-.13.003-.005.002-.005.06-.132.002-.005.002-.005.057-.132.003-.005.002-.005.056-.133.002-.005.002-.005.054-.134.002-.004.002-.005.053-.135.002-.005.002-.005.051-.135.002-.005.002-.005.05-.135.001-.005.002-.005.048-.137.001-.005.002-.005.046-.137.002-.005.002-.005.044-.137.002-.005.002-.005.042-.138.002-.005.002-.006.04-.138.002-.005.002-.005.04-.14V19.4l.002-.005.038-.14.001-.005.002-.005.036-.14.001-.005.001-.005.035-.141.001-.005.001-.005.033-.141.001-.006.001-.005.031-.141.002-.006v-.005l.03-.142.001-.005.001-.005.028-.143v-.005l.002-.005.025-.143.001-.006.001-.005.024-.143.001-.005.001-.006.001-.006.01-.161-.02-.16-.05-.154-.077-.141-.102-.125-.123-.104-.141-.079-.153-.051-.16-.022-.16.007ZM6.681 22.734l-.152.053-.14.08-.122.105-.101.126-.076.142-.048.154-.018.16.011.161.041.156.07.146.077.11.04.047.003.004.003.004.095.111.003.004.004.004.096.11.004.005.003.004.098.109.003.004.004.004.1.108.003.004.003.004.101.107.004.004.003.004.102.106.004.003.004.004.103.105.004.004.004.004.105.103.004.004.003.003.106.102.004.004.004.004.107.1.004.004.004.004.108.099.004.003.004.004.11.098.003.003.004.004.11.096.005.004.004.003.11.095.005.003.004.004.113.093.004.003.004.004.113.091.004.004.005.003.114.09.004.004.004.003.116.089.004.003.004.003.117.088.004.003.004.003.118.086.004.003.005.003.118.084.004.003.005.003.119.083.004.003.005.003.12.081.005.003.004.003.121.08.005.003.004.003.122.078.005.003.004.003.123.076.005.003.004.003.124.075.005.003.004.003.125.073.004.003.005.003.126.072.004.002.005.003.126.07.005.003.004.002.128.07.004.002.005.002.128.068.005.002.004.002.13.066.004.003.005.002.13.064.004.002.005.003.13.062.005.002.004.003.132.06.004.003.005.002.132.06.005.002.005.002.132.057.005.002.005.003.133.056.005.002.005.002.133.054.005.002.005.002.13.05.154.045.16.016.161-.015.155-.045.144-.072.128-.098.108-.12.083-.138.057-.15.028-.16-.003-.16-.032-.158-.061-.15-.088-.135-.11-.117-.132-.094-.12-.058-.124-.049-.126-.051-.122-.051-.122-.054-.12-.054-.126-.058-.119-.057-.12-.06-.12-.06-.118-.063-.117-.064-.119-.066-.116-.066-.115-.068-.115-.07-.113-.07-.115-.074-.112-.074-.11-.075-.11-.076-.112-.079-.11-.08-.109-.082-.106-.082-.104-.082-.106-.086-.105-.087-.101-.086-.105-.091-.1-.09-.1-.091-.1-.094-.097-.094-.1-.098-.093-.095-.096-.1-.093-.098-.092-.101-.089-.1-.09-.102-.088-.104-.036-.043-.114-.114-.133-.091-.148-.065-.157-.036-.161-.006-.16.024Zm15.063 2.691-.156.044-.12.057-.06.034-.12.066-.116.064-.119.062-.12.061-.12.06-.118.057-.126.058-.12.054-.122.054-.122.05-.126.052-.125.05-.124.046-.127.047-.125.044-.129.043-.126.04-.13.042-.128.038-.127.036-.13.035-.131.034-.129.031-.132.03-.13.03-.135.027-.133.026-.13.023-.13.022-.137.021-.132.02-.134.017-.132.015-.138.015-.135.013-.133.01-.138.01-.136.007-.134.006-.136.004-.14.003-.16.018-.155.047-.142.076-.127.1-.105.122-.08.14-.054.151-.025.16.006.16.035.158.064.148.09.134.114.114.133.092.147.065.157.036.134.008.145-.002h.011l.147-.005h.01l.147-.007h.011l.146-.009h.011l.146-.01h.005l.005-.001.146-.012h.011l.145-.014h.005l.006-.001.145-.016h.011l.144-.018h.006l.005-.001.144-.02h.011l.144-.021h.005l.006-.002.143-.022h.006l.005-.002.143-.024h.005l.006-.002.143-.026h.005l.005-.002.143-.027.005-.001.005-.001.142-.03h.005l.005-.002.142-.03.005-.002.005-.001.142-.033.005-.001.005-.001.14-.035.006-.001.005-.001.14-.036.005-.002.005-.001.14-.038.005-.001.005-.002.14-.04h.005l.005-.002.138-.042.005-.001.006-.002.138-.043.005-.001.005-.002.137-.044.005-.002.005-.002.137-.046.005-.002.005-.001.137-.048.005-.002.005-.002.135-.05.005-.001.005-.002.135-.051.005-.002.005-.002.135-.053.005-.002.004-.002.134-.054.005-.002.005-.002.133-.056.005-.003.005-.002.132-.057.005-.002.005-.003.132-.059.005-.002.004-.002.131-.061.005-.003.005-.002.13-.062.005-.003.005-.002.13-.064.004-.002.005-.003.129-.066.004-.002.005-.003.128-.067.005-.002.004-.003.127-.069.005-.002.005-.003.126-.07.005-.003.004-.002.065-.038.132-.093.112-.115.089-.135.062-.149.034-.157.004-.161-.027-.16-.055-.15-.082-.14-.107-.12-.127-.1-.144-.073-.154-.045-.16-.017-.161.014ZM15.994 0l-.187.001h-.011l-.188.004h-.011l-.187.006h-.011l-.187.008h-.005L15.2.02l-.187.01h-.005l-.005.001-.187.013h-.01L14.62.06h-.01l-.186.018h-.011l-.185.02-.005.001h-.006l-.185.022-.005.001h-.005l-.185.025h-.005l-.005.001-.184.027h-.006l-.005.001-.184.029h-.005l-.005.001-.183.031-.005.001-.006.001-.182.033-.006.001-.005.001-.182.035-.005.001-.005.001-.182.038h-.005l-.005.002-.181.04h-.005l-.005.002-.18.042-.006.001-.005.001-.18.044-.005.002h-.005l-.17.045-.152.054-.139.082-.121.106-.1.127-.074.143-.046.155-.017.16.013.16.043.156.07.145.097.13.119.108.137.085.15.058.159.03.16-.001.133-.023.165-.043.168-.041.171-.04.171-.037.172-.036.17-.033.173-.03.17-.03.177-.027.171-.025.175-.022.175-.02.175-.02.176-.016.175-.014.177-.012.176-.01.177-.007.174-.006.177-.003L16 1.73h.177l.178.004.174.006.177.007.176.01.177.012.175.014.176.017.175.018.175.02.175.023.171.025.177.027.17.03.173.03.17.033.171.036.154.033.16.02.161-.01.156-.04.146-.069.131-.094.111-.117.088-.135.06-.15.032-.158.002-.16-.027-.16-.057-.15L20 .714l-.108-.12-.128-.097-.144-.073-.129-.038-.158-.035-.005-.001-.005-.001L19.14.31h-.005l-.005-.002-.182-.035h-.006l-.005-.002-.182-.033h-.006l-.005-.002-.183-.03-.005-.001-.005-.001-.184-.029h-.005l-.006-.001-.184-.027h-.005l-.005-.001-.185-.024h-.005L17.968.12 17.783.1l-.006-.001h-.005l-.185-.02h-.006l-.005-.001L17.39.06 17.385.06h-.005l-.187-.015h-.005l-.005-.001-.187-.013h-.01L16.799.02h-.011L16.6.01h-.011l-.187-.006h-.011L16.204 0h-.011L16.005 0h-.01Zm8.86 2.939-.157.033-.15.062-.134.09-.116.111-.093.132-.067.147-.038.156-.01.161.022.16.05.153.078.141.103.124.102.087.045.034.142.106.137.105.14.11.136.11.135.112.134.115.134.117.13.115.132.122.128.12.127.122.127.125.123.126.124.128.121.13.118.128.118.132.117.133.113.134.113.136.11.136.109.137.109.142.104.14.103.14.101.142.1.144.099.146.095.145.094.147.093.15.092.15.087.149.087.15.085.152.083.155.08.152.08.155.04.081.084.138.11.119.128.096.145.072.155.043.16.013.161-.016.155-.046.143-.074.127-.099.106-.12.083-.14.055-.151.026-.16-.004-.16-.034-.158-.05-.124-.042-.085-.002-.004-.003-.005-.084-.165-.002-.004-.003-.005-.086-.164-.002-.004-.003-.005-.088-.162-.002-.005-.003-.005-.09-.161-.002-.005-.003-.004-.092-.16-.002-.005-.003-.005-.094-.16-.003-.004-.003-.004-.096-.159-.002-.004-.003-.005-.098-.157-.003-.004-.003-.005-.1-.156-.003-.004-.002-.005-.102-.154-.003-.005-.003-.004-.104-.154-.003-.004-.003-.005-.106-.152-.003-.004-.003-.005-.108-.151-.003-.004-.003-.005-.11-.15-.003-.004-.003-.004-.111-.15-.004-.003-.003-.005-.113-.147-.004-.004-.003-.005-.115-.146-.004-.004-.003-.004-.117-.145-.004-.004-.003-.004-.12-.144-.003-.004-.003-.004-.121-.142-.003-.004-.004-.004-.123-.141-.003-.004-.004-.004-.125-.14-.003-.004-.004-.004-.127-.138-.003-.004-.004-.004-.128-.136-.004-.004-.004-.004-.13-.135-.004-.004-.003-.004-.133-.134-.003-.004-.004-.003-.134-.133-.004-.003-.004-.004-.135-.13-.004-.004-.004-.004-.136-.128-.004-.004-.004-.004-.138-.126-.004-.004-.004-.003-.14-.125-.004-.004-.004-.003-.14-.123-.005-.004-.004-.003-.142-.121-.004-.004-.004-.003-.144-.12-.004-.003-.004-.003-.145-.117-.004-.004-.004-.003-.147-.115-.004-.004-.004-.003-.148-.113-.004-.003-.004-.004-.149-.111-.004-.003-.004-.004-.05-.036-.14-.083-.15-.055-.16-.027-.16.004Zm-18.381.348-.157.037-.147.066-.111.074-.04.032-.005.003-.004.004-.145.117-.004.003-.004.004-.144.119-.004.003-.004.004-.142.12-.004.004-.004.004-.141.123-.004.003-.004.004-.14.125-.004.003-.004.004-.138.126-.004.004-.004.004-.136.128-.004.004-.004.004-.135.13-.004.004-.004.003-.134.133-.004.003-.004.004-.132.134-.003.004-.004.004-.13.135-.004.004-.004.004-.128.136-.004.004-.004.004-.126.138-.004.004-.003.004-.125.14-.004.004-.003.004-.123.14-.004.005-.003.004-.121.142-.004.004-.003.004-.12.144-.003.004-.003.004-.117.145-.004.004-.003.004-.115.146-.004.005-.003.004-.113.147-.003.005-.004.004-.111.149-.003.004-.004.004-.11.15-.002.005-.003.004-.108.151-.003.005-.003.004-.106.152-.003.005-.003.004-.104.154-.003.004-.003.005-.102.154-.003.005-.002.004-.1.156-.003.005-.003.004-.098.157-.003.005-.003.004-.096.159-.002.004-.003.005-.094.16-.003.004-.002.004-.092.16-.003.005-.003.005-.09.161-.002.005-.003.005-.088.162-.002.005-.003.004-.086.164-.002.005-.002.004-.084.165-.003.005-.002.004-.082.166-.002.005-.003.004-.08.167-.002.004-.002.005-.078.168-.002.004-.002.005-.045.1-.053.153-.023.16.007.16.037.157.065.148.092.132.114.114.134.09.148.064.157.035.161.006.16-.025.152-.054.14-.08.121-.106.1-.126.065-.118.043-.095.074-.16.075-.155.077-.157.08-.155.08-.152.083-.155.085-.152.086-.15.088-.149.091-.15.094-.15.094-.147.095-.145.099-.146.1-.144.1-.142.104-.14.104-.14.11-.142.107-.137.11-.136.114-.136.113-.134.117-.133.118-.132.117-.129.122-.13.124-.127.123-.126.127-.125.127-.122.128-.12.132-.122.13-.115.133-.117.135-.115.135-.111.136-.11.037-.03.117-.11.094-.132.068-.146.04-.156.01-.161-.02-.16-.05-.154-.076-.141-.102-.125-.123-.104-.14-.08-.153-.051-.16-.023-.161.008Zm24.514 11.15-.157.04-.146.067-.131.093-.112.117-.088.135-.061.149-.033.157-.005.134.006.14.006.176.003.177.001.178-.001.177-.003.178-.006.177-.007.176-.01.177-.012.176-.015.176-.016.173-.018.175-.02.175-.024.174-.024.175-.027.17-.03.174-.03.173-.033.17-.036.172-.037.17-.04.17-.042.172-.043.168-.045.166-.048.169-.05.167-.052.168-.053.164-.056.166-.058.166-.06.161-.061.164-.063.158-.066.165-.068.16-.07.16-.07.158-.075.159-.074.155-.078.158-.081.158-.06.15-.03.158-.001.161.029.159.058.15.085.137.108.12.13.096.144.07.156.044.16.013.16-.017.155-.046.143-.074.127-.1.107-.12.07-.115.083-.164.003-.005.002-.004.082-.166.002-.005.003-.004.08-.167.002-.005.002-.004.078-.168.002-.004.002-.005.076-.169.002-.004.002-.005.074-.17.002-.004.002-.005.072-.17.002-.005.002-.005.07-.17.002-.006.001-.005.068-.172.002-.004.002-.005.065-.173.002-.005.002-.005.063-.173.002-.005.002-.005.06-.174.003-.005.001-.005.06-.175.001-.005.002-.005.057-.176.001-.005.002-.005.055-.177.001-.005.002-.005.052-.177.002-.005.001-.005.051-.178.001-.005.002-.005.048-.179.002-.005v-.005l.047-.179.001-.005.002-.005.044-.18v-.005l.002-.005.042-.18.001-.006.001-.005.04-.18.001-.006.001-.005.038-.182v-.005l.002-.005.035-.182v-.006l.002-.005.033-.182v-.006l.002-.005.03-.183.001-.005.001-.005.029-.184v-.005l.001-.006.027-.184v-.005l.001-.005.024-.185v-.005l.001-.005.022-.185v-.006l.001-.005.02-.185v-.006l.001-.005.017-.186v-.005l.001-.005.015-.187v-.005l.001-.005.013-.187v-.01l.01-.187.001-.006v-.005l.009-.187v-.011l.006-.187v-.011l.004-.188v-.011l.001-.188v-.01l-.001-.188v-.011l-.004-.188v-.011l-.006-.187v-.011l-.007-.145-.022-.16-.05-.152-.08-.141-.103-.124-.125-.102-.141-.077-.153-.05-.16-.02-.161.009ZM.777 15l-.158.032-.15.06-.136.087-.117.11-.095.131-.068.146-.04.156-.012.133-.001.14v.01l.001.188v.011l.004.188v.011l.006.187v.011l.008.187v.011l.011.187v.005l.001.005.013.187v.01l.016.187v.01l.018.186v.011l.02.185.001.005v.006l.022.185.001.005v.005l.025.185v.005l.001.005.027.184v.006l.001.005.029.184v.005l.001.005.031.183.001.005.001.006.033.182.001.005.001.006.035.182.001.005.001.005.038.182v.005l.002.005.04.181v.005l.002.005.042.18.001.006.001.005.044.18.002.005v.005l.047.18.001.004.002.005.048.179.002.005.001.005.05.178.002.005.001.005.053.177.002.005.001.005.055.177.002.005.001.005.057.176.002.005.001.005.06.175.001.005.002.005.061.174.002.005.002.005.063.173.002.005.002.005.065.173.002.005.002.004.067.172.002.005.002.005.07.171.002.005.002.005.072.17.002.005.002.005.074.169.002.005.002.004.076.169.002.005.002.004.078.168.002.004.002.005.08.167.003.004.002.005.082.166.002.004.003.005.02.04.086.136.11.118.13.095.146.07.156.041.16.012.16-.019.155-.048.142-.075.126-.1.105-.123.08-.14.054-.152.024-.16-.006-.16-.036-.158-.051-.123-.018-.034-.078-.158L3.1 22.1l-.074-.16-.071-.156-.07-.162-.068-.16-.067-.164-.062-.158-.062-.164-.059-.161-.058-.166-.056-.166-.053-.164-.052-.168-.05-.167-.048-.17-.045-.165-.043-.168-.043-.172-.039-.17-.037-.17-.036-.172-.033-.17-.03-.173-.03-.174-.027-.17-.025-.175-.022-.174-.021-.175-.018-.175-.017-.173-.014-.176-.012-.176-.01-.177-.007-.176-.006-.177-.003-.178L1.73 16v-.134l-.013-.16-.044-.156-.072-.144-.097-.129-.12-.108-.137-.085-.15-.057L.938 15 .777 15ZM6.17 26.842l-.152.052-.14.08-.122.105-.101.126-.076.142-.048.154-.02.16.012.161.041.156.07.146.094.13.096.093.032.026.004.003.004.004.145.117.004.003.004.004.146.115.005.003.004.004.147.113.005.003.004.004.149.111.004.003.004.003.15.11.005.003.004.003.151.108.005.003.004.003.152.106.005.003.004.003.154.104.004.003.005.003.154.102.005.002.004.003.156.1.005.003.004.003.157.098.005.003.004.002.159.096.004.003.005.003.16.094.004.003.004.002.16.092.005.003.005.002.161.09.005.003.005.003.162.088.005.002.004.002.164.087.005.002.004.002.165.084.005.003.004.002.166.082.004.002.005.003.167.08.004.002.005.002.168.078.004.002.005.002.169.076.004.002.005.002.17.074.004.002.005.002.17.072.005.002.005.002.17.07.006.002.005.001.171.068.005.002.005.002.173.065.005.002.005.002.173.063.005.002.005.002.174.061.005.002.005.001.175.06.005.001.005.002.176.057.005.001.005.002.177.055.005.001.005.002.177.052.005.002.005.001.178.051.005.001.005.002.178.048.006.002h.005l.179.047.005.001.005.002.18.044h.005l.005.002.18.042.006.001.005.001.159.035.16.02.16-.01.157-.04.146-.069.13-.094.112-.117.087-.136.06-.149.033-.158.002-.161-.028-.159-.057-.15-.084-.138-.108-.12-.128-.098-.144-.072-.128-.039-.154-.033-.168-.04-.171-.041-.169-.044-.17-.045-.166-.048-.168-.05-.165-.051-.166-.054-.166-.056-.163-.057-.165-.06-.161-.062-.164-.064-.16-.065-.16-.068-.162-.07-.157-.07-.157-.074-.157-.075-.156-.077-.153-.079-.156-.082-.153-.082-.154-.086-.15-.086-.152-.09-.148-.09-.147-.092-.149-.095-.145-.095-.144-.098-.145-.1-.143-.102-.14-.103-.14-.104-.14-.108-.139-.11-.136-.11-.027-.022-.133-.091-.148-.065-.157-.036-.161-.006-.16.024Zm19.214.073-.156.039-.146.067-.11.076-.064.051-.139.11-.14.108-.14.104-.14.103-.143.101-.145.101-.144.098-.145.095-.149.095-.148.093-.147.089-.152.09-.15.086-.154.086-.153.082-.156.082-.153.079-.156.077-.157.075-.157.073-.158.071-.16.07-.16.068-.161.065-.164.064-.161.061-.165.06-.163.058-.166.056-.166.054-.166.051-.167.05-.167.048-.17.045-.168.044-.171.042-.168.039-.17.037-.11.023-.154.047-.143.075-.126.1-.106.122-.081.139-.054.152-.025.16.006.16.035.158.063.148.09.133.114.115.132.092.148.065.157.037.16.008.133-.017.115-.024h.005l.005-.002.181-.04h.005l.005-.002.18-.042.006-.001.005-.001.18-.044.005-.002h.005l.18-.047.004-.001.005-.002.179-.048.005-.002.005-.001.178-.05.005-.002.005-.002.177-.052.005-.002.005-.001.177-.055.005-.002.005-.001.176-.057.005-.002.005-.002.175-.059.005-.001.005-.002.174-.061.005-.002.005-.002.173-.063.005-.002.005-.002.173-.065.005-.002.004-.002.172-.068.005-.001.005-.002.171-.07.005-.002.005-.002.17-.072.005-.002.005-.002.169-.074.005-.002.004-.002.169-.076.004-.002.005-.002.168-.078.004-.002.005-.002.167-.08.004-.003.005-.002.166-.082.004-.002.005-.003.165-.084.004-.002.005-.002.163-.087.005-.002.005-.002.162-.088.005-.003.005-.003.161-.09.005-.002.004-.003.16-.092.005-.002.005-.003.16-.094.004-.003.004-.003.158-.096.005-.002.004-.003.158-.098.004-.003.005-.003.156-.1.004-.003.004-.002.155-.102.005-.003.004-.003.154-.104.004-.003.005-.003.152-.106.004-.003.005-.003.151-.108.004-.003.005-.003.15-.11.004-.003.004-.003.149-.111.004-.004.004-.003.148-.113.004-.004.004-.003.147-.115.004-.004.004-.003.068-.055.116-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.05-.153-.08-.14-.103-.125-.124-.102-.142-.077-.153-.05-.16-.02-.16.009Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-parallel-multiple"><path d="M15.975.003C8.195-.157.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.408 17.201.049c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.215-2.282-2.022-5.3-3.217-8.357-3.22ZM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.082 11.082 0 0 1 16 4.975Zm-2.15 3.281v5.534H8.213v4.38h5.636v5.534h4.31V18.17h5.639v-4.38h-5.64V8.256h-4.31Zm.865.865h2.583v5.534h5.635v2.65h-5.635v5.533h-2.583v-5.534h-5.64v-2.649h5.64V9.121Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-signal"><path d="M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 5.021Zm.006 3.521L9.206 20.745h13.598L16.005 8.542Zm0 1.775 5.329 9.564H10.677l5.328-9.564Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-catch-timer"><path d="M15.97.04h-.127C8.713-.018 2.003 5.334.437 12.286c-1.51 6.123.98 13.005 6.136 16.665 5.125 3.788 12.546 4.105 17.912.623 5.272-3.276 8.33-9.766 7.325-15.916-.904-6.241-5.79-11.7-11.95-13.143A16.082 16.082 0 0 0 15.97.04Zm-.181 1.724c.115 0 .23 0 .347.003 6.625-.066 12.823 5.149 13.89 11.69 1.13 5.91-1.908 12.349-7.262 15.138-5.473 3.013-12.866 1.884-17.116-2.726C1.291 21.372.444 13.914 3.802 8.602c2.493-4.112 7.169-6.819 11.987-6.838Zm.283 1.554c-.117 0-.234.002-.351.005-6.1 0-11.691 5.049-12.346 11.114-.78 5.684 2.795 11.612 8.218 13.52 5.139 1.943 11.416.101 14.624-4.38 3.461-4.583 3.262-11.538-.596-15.831-2.36-2.747-5.924-4.423-9.549-4.428Zm-.078 1.695c.078 0 .156 0 .234.003 5.4 0 10.321 4.556 10.734 9.942.563 5.13-2.958 10.364-7.971 11.678-4.832 1.41-10.457-.935-12.746-5.446-2.463-4.559-1.2-10.795 3.014-13.883a11.072 11.072 0 0 1 6.735-2.294Zm-.137 3.42c-2.965.02-5.792 1.968-6.884 4.722-1.137 2.693-.509 6.007 1.536 8.096 1.988 2.14 5.263 2.929 8.007 1.926 2.875-.98 4.987-3.824 5.063-6.865.154-2.954-1.622-5.875-4.295-7.13a7.545 7.545 0 0 0-3.427-.75Zm.27 1.381c2.708.013 5.249 2.014 5.88 4.652.704 2.576-.481 5.512-2.788 6.862-2.356 1.478-5.677 1.084-7.611-.918-2.042-1.97-2.405-5.376-.839-7.738 1.11-1.762 3.146-2.877 5.229-2.857h.13Zm1.831 1.764-2.072 3.76c-.64.068-.792 1.039-.202 1.298.39.27.696-.18 1.051-.164h3.168v-.864h-3.18l1.992-3.612-.757-.418Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-none"><path d="M15.848.001C8.113-.093.931 6.281.125 13.983c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.207C29.105 4.938 23.55.48 17.367.06A16.448 16.448 0 0 0 15.848 0v.001Zm.293 1.727c7.113-.099 13.662 5.97 14.077 13.08.56 6.299-3.516 12.735-9.582 14.679-5.798 2.004-12.806-.12-16.283-5.237C.717 19.159.874 11.638 5.016 6.876 7.722 3.638 11.902 1.63 16.14 1.728Zm-.415 1.555C9.157 3.258 3.256 9.156 3.278 15.729c-.16 5.965 4.365 11.725 10.293 12.737 5.409 1.065 11.37-1.744 13.775-6.753 2.534-4.986 1.386-11.627-2.953-15.251-2.364-2.077-5.512-3.27-8.667-3.18Zm.507 1.692c5.82-.026 11.013 5.318 10.79 11.143-.024 5.3-4.313 10.267-9.636 10.803-5.075.667-10.426-2.588-11.885-7.553-1.535-4.744.494-10.46 4.925-12.885a11.072 11.072 0 0 1 5.806-1.508Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-throw-compensation"><path d="M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 4.975Zm-.56 5.772-7.408 5.231 7.409 5.234v-5.057c2.385 1.687 4.771 3.371 7.157 5.057V10.747l-7.157 5.055v-5.055Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-throw-escalation"><path d="M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 5.021Zm.006 3.927c-1.672 4.654-2.734 9.502-4.406 14.155 1.534-1.525 2.872-3.234 4.406-4.759l4.406 4.76c-1.496-4.71-2.91-9.446-4.406-14.156Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-throw-link"><path d="M15.975.049C8.195-.11.935 6.286.125 14.03c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.93 23.445.453 17.201.095c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.22.872 11.725 4.985 6.962c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 5.021c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 5.021Zm1.78 4.093v3.555H9.785v6.714h7.994v3.554l5.829-6.911-5.83-6.912Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-throw-message"><path d="M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 4.975Zm-5.91 5.475 6.04 4.901 6.042-4.9H10.088Zm-1.341 1.138v9.921h14.514V11.79l-7.132 5.787-7.382-5.99Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-throw-multiple"><path d="M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 4.975Zm.006 3.073-7.62 5.532 2.91 8.95h9.42l2.91-8.95-7.62-5.532Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-intermediate-event-throw-signal"><path d="M15.975.003C8.195-.156.935 6.24.125 13.985c-.855 6.55 2.741 13.46 8.74 16.314 5.666 2.847 13.012 1.99 17.71-2.33 4.745-4.162 6.727-11.243 4.532-17.206C29.09 4.884 23.445.407 17.201.049c-.408-.03-.817-.046-1.226-.046Zm-.181 1.724c7.134-.269 13.84 5.68 14.399 12.804.686 6.283-3.267 12.792-9.283 14.862-5.847 2.162-13.025.06-16.557-5.141C.728 19.174.872 11.679 4.985 6.916c2.632-3.171 6.671-5.174 10.809-5.19Zm.283 1.553c-6.6-.21-12.671 5.585-12.79 12.185-.292 5.964 4.129 11.817 10.034 12.953 5.47 1.198 11.584-1.613 14.025-6.702 2.525-4.97 1.396-11.585-2.912-15.216-2.282-2.021-5.3-3.216-8.357-3.22ZM16 4.975c5.818-.154 11.117 5.082 11.024 10.905.103 5.384-4.23 10.5-9.636 11.043-5.075.667-10.426-2.587-11.885-7.552-1.53-4.73.48-10.428 4.888-12.864A11.083 11.083 0 0 1 16 4.975Zm.006 3.52c-2.261 4.07-4.533 8.136-6.798 12.205h13.596L16.005 8.495Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-lane"><path d="M0 7v18.62h32V7H0Zm1.655 17.056V8.684h28.62v15.372H1.656Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-manual-task"><path d="M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494Zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5Zm4.43 1.328c-.222.005-.43.09-.606.203-.985.638-4.356 2.977-5.096 3.486-.67.46-1.12 1.153-1.38 1.974-.27.858-.235 1.793-.232 2.576.002.59.016 1.104.17 1.727.22.908.634 1.63 1.23 2.118.597.49 1.363.732 2.23.734 3.038.012 6.078.016 9.119 0 .327-.002.645-.127.848-.37.204-.241.287-.56.291-.914a1.732 1.732 0 0 0-.097-.625h.327c.335 0 .641-.11.852-.316.21-.206.317-.475.374-.754a1.783 1.783 0 0 0-.126-1.143 1.18 1.18 0 0 0 .877-.521c.196-.306.257-.666.258-1.025.001-.375-.088-.738-.293-1.033a1.179 1.179 0 0 0-.958-.512h-.478c.108-.237.156-.505.155-.782-.003-.373-.098-.721-.316-.99a1.21 1.21 0 0 0-.943-.43c-2.273-.004-4.236.018-6.412.012l-.19-.001c.102-.104.202-.205.312-.314.337-.336.662-.652.83-.869.4-.516.46-1.215.123-1.729-.178-.272-.439-.456-.72-.494a.93.93 0 0 0-.148-.008Zm.029.728.022.001c.055.008.115.027.209.172.132.201.126.606-.09.884-.079.102-.431.465-.767.8-.337.334-.657.643-.815.836-.153.186-.096.338-.056.435.04.096.085.212.298.263.063.014.066.01.086.012l.066.003c2.429.027 4.986-.004 7.223-.003.194 0 .293.056.379.162.086.105.151.286.153.533 0 .257-.065.467-.155.59-.09.124-.183.182-.37.183-1.706-.001-3.411-.005-5.117-.009v.731c2.23.004 4.461.01 6.692.012.17 0 .265.06.361.2.096.138.164.364.163.615 0 .268-.058.501-.143.634-.085.132-.162.193-.385.195-2.32-.001-4.554-.006-6.688-.003v.73c1.905 0 3.809.003 5.713.001.194.005.316.09.416.26.102.173.151.442.093.728-.04.193-.102.313-.17.38-.067.065-.148.108-.343.108h-5.71l.002.734c1.445 0 2.89-.01 4.334-.001.162 0 .232.041.297.123.064.081.123.238.12.488-.003.244-.061.385-.12.455-.06.07-.127.11-.296.11-3.037.016-6.076.012-9.113 0-.735-.002-1.316-.196-1.77-.568-.454-.372-.793-.935-.986-1.728-.134-.546-.146-.978-.148-1.558-.003-.796-.018-1.664.199-2.354.222-.705.582-1.24 1.096-1.593.75-.515 4.14-2.866 5.079-3.474a.504.504 0 0 1 .241-.087Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-message-flow"><path d="m4.073 26.607 1.295 1.296L1.325 32l-.662-.633L0 30.735l4.073-4.128Zm6.953-7.046 1.296 1.296L1.325 32l7.555-7.656-1.295-1.296 1.455-1.474 1.986-2.013ZM32 .06s-2.699 5.189-5.417 10.462l-.326.633c-1.14 2.214-2.265 4.407-3.176 6.2-1.228-1.222-2.449-2.452-3.676-3.675l-3.57 3.618-1.297-1.296 3.541-3.588c-.98-.964-1.932-1.958-2.923-2.91l-.753-.706c2.68-1.258 6.533-3.165 9.95-4.876l.617-.309C28.838 1.673 32 .06 32 .06Zm-4.126 4.06-.015.007-.115.057-.048.024-.115.057L17.7 9.172l5.017 4.948 5.157-10Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-participant"><path d="M0 5v22.069h32V5H0Zm30.276 1.684v18.82H6.62V6.684h23.655Zm-28.62 0h3.31v18.82h-3.31V6.684Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-process"><path fill-rule="evenodd" d="m16.177 0 .137.002c.452.009.9.037 1.342.082.346.036.62.303.68.646l.437 2.536c.055.319.296.57.608.655.986.269 1.923.653 2.796 1.14.28.155.624.145.885-.039l2.083-1.47a.775.775 0 0 1 .937.022c.86.699 1.645 1.484 2.343 2.343.22.27.223.653.023.937l-1.439 2.038a.833.833 0 0 0-.031.896c.512.889.92 1.846 1.204 2.855a.833.833 0 0 0 .653.601l2.435.42c.342.059.61.333.645.679a15.928 15.928 0 0 1 .08 2.064l-.003.114c-.012.382-.038.76-.077 1.134a.775.775 0 0 1-.645.68l-2.396.412a.835.835 0 0 0-.656.61 12.511 12.511 0 0 1-1.2 2.917.832.832 0 0 0 .034.892l1.396 1.978c.2.284.196.667-.023.936a16.104 16.104 0 0 1-2.343 2.343.775.775 0 0 1-.937.023l-1.99-1.404a.833.833 0 0 0-.88-.026c-.907.516-1.886.922-2.916 1.2a.833.833 0 0 0-.61.656l-.414 2.396a.775.775 0 0 1-.679.646 16.096 16.096 0 0 1-3.312 0 .775.775 0 0 1-.679-.646l-.423-2.452a.834.834 0 0 0-.598-.636 12.474 12.474 0 0 1-1.468-.514 12.49 12.49 0 0 1-1.417-.68.833.833 0 0 0-.878.03l-2.026 1.43a.775.775 0 0 1-.937-.023 16.069 16.069 0 0 1-2.342-2.342.774.774 0 0 1-.024-.936l1.402-1.986a.833.833 0 0 0 .032-.896 12.507 12.507 0 0 1-1.214-2.911.833.833 0 0 0-.655-.606l-2.386-.412a.775.775 0 0 1-.646-.678 16.097 16.097 0 0 1 0-3.314.775.775 0 0 1 .646-.678l2.386-.412a.833.833 0 0 0 .655-.606 12.507 12.507 0 0 1 1.214-2.911.833.833 0 0 0-.032-.896L3.552 6.853a.774.774 0 0 1 .023-.936 16.091 16.091 0 0 1 2.343-2.343.775.775 0 0 1 .937-.023l2.03 1.433c.26.177.6.182.874.028.915-.512 1.88-.9 2.87-1.167a.833.833 0 0 0 .612-.656l.424-2.46a.775.775 0 0 1 .679-.645C14.845.032 15.348.004 15.85 0h.326ZM16 6.4c-5.302 0-9.6 4.297-9.6 9.599 0 5.302 4.298 9.6 9.6 9.6s9.6-4.298 9.6-9.6-4.298-9.6-9.6-9.6Zm-3 4.283c0-1.425 1.637-2.203 2.715-1.29l5.69 4.815c.794.672.794 1.91 0 2.583l-5.69 4.815c-1.078.913-2.715.134-2.715-1.29Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-receive-task"><path d="M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494Zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5ZM5.23 7.764v11.577h17.55V7.764H5.23Zm1.816.758h13.917l-6.959 4.577-6.958-4.577Zm-1.06.21 8.018 5.274 8.018-5.275v9.853H5.987V8.73Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-script-task"><path d="M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494Zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5Zm2.99 3.077-.077.045-.026.015c-1.09.646-1.84 1.239-2.336 1.818-.496.579-.735 1.162-.742 1.725-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.324.408-.911.897-1.85 1.445l-1.388.808h8.56l.101-.059c.996-.58 1.667-1.116 2.094-1.655.429-.54.603-1.107.547-1.638-.11-1.052-.967-1.818-1.688-2.556-.721-.739-1.306-1.436-1.298-2.092.004-.331.132-.7.535-1.171.402-.47 1.08-1.02 2.119-1.636l1.362-.806h-8.54Zm.241.867h5.271a6.83 6.83 0 0 0-1.113 1.01c-.496.58-.736 1.163-.743 1.726-.014 1.119.812 1.958 1.544 2.708.732.75 1.385 1.456 1.446 2.041.032.298-.039.598-.364 1.008-.312.393-.872.862-1.753 1.386H8.728c.367-.286.658-.566.88-.847.43-.54.604-1.107.548-1.638-.11-1.052-.968-1.818-1.688-2.556-.721-.739-1.306-1.435-1.298-2.092.004-.331.132-.7.534-1.171.389-.454 1.04-.984 2.021-1.575Zm-1.233 1.48v.4h4.12v-.4h-4.12Zm-.154 2.158v.4H12.6v-.4H8.34Zm1.931 2.158v.4h4.126v-.4H10.27Zm.59 2.158v.4h4.276v-.4h-4.276Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-send-task"><path d="M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494Zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5Zm-1.38 3.16 8.332 4.717L21.78 8.16H5.114Zm.021 1.745v9.309H21.8V9.905l-8.353 4.655-8.31-4.655Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-service-task"><path d="M6.494 3C2.916 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494Zm0 2h19.012C28.015 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5Zm1.22 1.681V7.84c-.329.093-.63.223-.914.382l-.83-.82-1.554 1.561.83.82c-.16.288-.285.594-.372.911l-1.177.002v2.2l1.189-.004c.109.431.345.819.58 1.165v-1.898l-1.038.004v-.737l1.034-.002.058-.294c.084-.429.252-.838.493-1.203l.165-.25-.727-.718.523-.526.728.719.247-.165c.379-.25.793-.417 1.206-.505l.291-.06-.002-1.01h.75L9.19 8.417H11.16c-.185-.221-.951-.508-1.237-.588L9.93 6.68H7.713Zm2.078 2.105.003 1.158a4.19 4.19 0 0 0-.915.383l-.83-.821-1.553 1.562.83.82c-.16.288-.286.593-.373.91l-1.176.003v2.2l1.188-.004c.094.326.224.624.383.905l-.85.847 1.57 1.543.847-.843c.29.161.599.286.919.373v1.198c.756.006 1.56.003 2.206.003V17.81a4.19 4.19 0 0 0 .915-.383l.847.835 1.554-1.56-.848-.836c.16-.288.286-.594.373-.912l1.152-.007V12.75l-1.165.007a4.09 4.09 0 0 0-.382-.905l.805-.807-1.57-1.546-.804.806a4.16 4.16 0 0 0-.915-.372l.007-1.147H9.792Zm.732.73h.751l-.006 1.005.297.058c.43.085.844.252 1.21.492l.25.162.701-.704.528.52-.702.704.169.25c.248.374.412.779.505 1.196l.061.292 1.016-.006v.737l-1.01.006-.058.292c-.085.43-.252.838-.494 1.205l-.165.25.744.733-.523.525-.743-.734-.248.165c-.378.247-.789.418-1.203.503l-.294.058v1.067h-.745v-1.059l-.295-.057a3.395 3.395 0 0 1-1.21-.492l-.248-.162-.747.743-.528-.52.747-.744-.17-.25a3.546 3.546 0 0 1-.506-1.196l-.06-.291-1.04.004v-.738l1.034-.002.058-.294c.085-.428.252-.837.493-1.203l.165-.25-.726-.718.522-.526.728.72.248-.166a3.546 3.546 0 0 1 1.205-.504l.292-.06-.003-1.01Zm.388 2.685a1.65 1.65 0 0 0-1.645 1.645c0 .904.74 1.645 1.645 1.645a1.65 1.65 0 0 0 1.645-1.645 1.65 1.65 0 0 0-1.645-1.645Zm0 .73a.91.91 0 0 1 .915.915.91.91 0 0 1-.915.914.91.91 0 0 1-.915-.914.91.91 0 0 1 .915-.915Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-compensation"><path d="M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0 0 15.994 0Zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708Zm-.566 9.03-7.415 5.235 7.415 5.238v-5.062c2.386 1.689 4.775 3.375 7.163 5.062V10.761l-7.163 5.058v-5.058Zm-.866 1.666v7.13L9.51 15.993l5.052-3.565Zm7.166 0v7.137l-5.052-3.568 5.052-3.569Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-condition"><path d="M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0Zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73Zm-5.362 7.523v13.493h10.724V9.253H10.638Zm.863.866h8.995V21.88H11.501V10.12Zm.928 1.324v.863h7.139v-.863h-7.139Zm0 2.605v.867h7.139v-.867h-7.139Zm0 3.01v.864h7.139v-.863h-7.139Zm0 2.72v.863h7.139v-.863h-7.139Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-error"><path d="M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0 0 15.994.005Zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708Zm6.13 7.45-3.635 7.37-4.52-5.88c-1.37 4.048-2.738 8.095-4.106 12.143l4.603-5.917 4.748 5.433 2.91-13.149Zm-7.754 3.889 4.299 5.449 1.073-2.39-1.028 4.135-4.387-5.16-1.78 2.75 1.823-4.784Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-escalation"><path d="M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0 0 15.994 0Zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708Zm0 7.183c-1.674 4.658-2.736 9.509-4.41 14.166 1.535-1.526 2.874-3.236 4.41-4.763l4.41 4.763c-1.499-4.713-2.913-9.453-4.41-14.166Zm.032 2.931c.822 2.588 1.598 5.19 2.42 7.778l-2.42-2.615c-.683.598-2.455 2.887-2.34 2.39.871-2.489 1.448-5.07 2.34-7.553Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-message"><path d="M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0 0 15.994 0Zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708Zm-7.257 8.732v11.069h14.513v-11.07H8.738Zm3.224 1.73h8.064c-1.428.878-2.857 2.807-4.285 3.018l-3.779-3.019Zm9.562 1.017v6.593H10.465V13.21l5.528 4.417 5.53-4.418Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-multiple"><path d="M15.995.001C9.705-.084 3.643 3.964 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0 0 15.994 0Zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626C2.101 23.171.377 16.07 2.848 10.44c2.14-5.205 7.515-8.774 13.147-8.708Zm0 6.328-7.626 5.536c.97 2.986 1.942 5.971 2.913 8.957h9.426l2.912-8.957-7.625-5.536Zm0 1.068 6.609 4.798-2.525 7.763H11.91l-2.524-7.763 6.609-4.798Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-non-interrupting-condition"><path d="M10.632 9.189V22.68h10.723V9.189H10.632Zm.862.865h8.994v11.76H11.494v-11.76Zm.928 1.324v.863h7.138v-.863h-7.138Zm0 2.605v.866h7.138v-.866h-7.138Zm0 3.01v.863h7.138v-.863h-7.138Zm0 2.72v.862h7.138v-.863h-7.138ZM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012Zm8.715 2.783-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004ZM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007Zm24.596 11.088-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01Zm-30.213.66-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004Zm24.585 11.83-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01Zm-19.17.054-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-non-interrupting-escalation"><path d="M16 9.209c-1.674 4.655-2.735 9.504-4.408 14.16 1.534-1.526 2.873-3.235 4.407-4.761l4.408 4.76c-1.497-4.71-2.91-9.448-4.408-14.16Zm.031 2.93c.822 2.586 1.598 5.187 2.42 7.774l-2.42-2.614c-.682.598-2.453 2.886-2.34 2.389.873-2.488 1.45-5.068 2.34-7.55ZM16.132.364c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374Zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 0 0-.372-.117ZM6.55 3.564c-.734.078-1.196.762-1.735 1.206C3.552 6.02 2.55 7.511 1.681 9.053c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 0 0-.822-.839Zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 0 0 1.761-8.54.865.865 0 0 0-.785-.579Zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786A15.932 15.932 0 0 1 1.728 16a.876.876 0 0 0-.79-.692Zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422Zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-non-interrupting-message"><path d="M8.746 10.393v11.064h14.506V10.393H8.746Zm3.223 1.728h8.06c-1.428.879-2.856 2.807-4.283 3.018l-3.777-3.018Zm9.557 1.018v6.59H10.473v-6.59l5.525 4.416 5.528-4.416ZM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374Zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 0 0-.372-.117ZM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 0 0-.822-.839Zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 0 0 1.761-8.54.865.865 0 0 0-.785-.579Zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 0 1-1.672-6.874.876.876 0 0 0-.79-.692Zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422Zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-non-interrupting-multiple"><path d="M23.621 13.524 16 7.99l-7.622 5.534 2.911 8.952h9.422l2.911-8.952Zm-1.016.33-2.523 7.759h-8.165l-2.524-7.76L16 9.059l6.606 4.796ZM16.132 0c-1.51.016-3.055.139-4.492.614-.854.442-.266 1.861.651 1.578 2.266-.58 4.656-.596 6.944-.144.935.063 1.21-1.391.318-1.674-1.118-.26-2.274-.361-3.42-.374Zm8.865 2.777c-.931-.1-1.262 1.29-.425 1.666 1.863 1.364 3.222 3.298 4.322 5.296.617.737 1.875-.145 1.398-.979-1.184-2.275-2.808-4.384-4.923-5.866a.863.863 0 0 0-.372-.117ZM6.55 3.2c-.734.078-1.196.762-1.735 1.206C3.552 5.656 2.55 7.147 1.681 8.69c-.31.533-.71 1.33-.03 1.767.615.432 1.282-.132 1.446-.742.796-1.475 1.746-2.89 2.934-4.08.43-.548 1.292-.822 1.34-1.595a.874.874 0 0 0-.822-.839Zm24.582 11.078c-.771-.033-1.004.82-.873 1.437.13 2.395-.471 4.797-1.615 6.897-.33.876.984 1.559 1.512.785a14.276 14.276 0 0 0 1.761-8.54.865.865 0 0 0-.785-.579Zm-30.195.666c-.774-.06-1.032.785-.905 1.407.117 2.41.732 4.81 1.858 6.945.528.774 1.84.09 1.51-.786a15.932 15.932 0 0 1-1.672-6.874.876.876 0 0 0-.79-.692Zm24.57 11.817c-.762.099-1.243.835-1.919 1.16-1.514 1.002-3.237 1.632-4.978 2.092-.864.423-.307 1.855.616 1.591 2.528-.578 4.93-1.75 6.913-3.421.469-.522.07-1.42-.631-1.422Zm-19.16.042c-.845.001-1.12 1.228-.395 1.628 1.665 1.401 3.667 2.348 5.76 2.912.618.178 1.482.565 1.893-.177.355-.628-.226-1.297-.87-1.326-1.972-.515-3.912-1.285-5.5-2.594-.26-.213-.522-.472-.888-.443Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-non-interrupting-parallel-multiple"><path d="M13.503 9.016v4.428H9.075v4.98h4.428v4.428h4.98v-4.427h4.428v-4.981h-4.427V9.016h-4.981Zm.83.83h3.32v4.428h4.428v3.32h-4.428v4.428h-3.32v-4.454H9.905v-3.294h4.428V9.846ZM16.12 0h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136-.109-.118-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006l-.216-.042-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006l-.006-.001-.22-.017-.005-.001h-.006L17.06.03h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012L16.132 0h-.012Zm8.715 2.783-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.091-.002-.004-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004ZM6.377 3.21l-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1v.003l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007Zm24.596 11.088-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114v-.008l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01Zm-30.213.66-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V15.95l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004Zm24.585 11.83-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01Zm-19.17.054-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022Z" opacity=".98" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-non-interrupting-signal"><path d="M16.007 8.82 9.21 21.022h13.596L16.007 8.82Zm0 1.775 5.328 9.563H10.68l5.327-9.563ZM16.14.386c-1.571.236-4.195-.284-4.9 1.381.619 1.703 2.745.069 4.085.365 1.421-.13 2.84.2 4.235.259C21.27.784 18.19.344 17 .413a20.456 20.456 0 0 0-.86-.027ZM25 3.162c-2.19.694.401 2.26 1.181 3.094 1.083 1.152 1.954 2.484 2.715 3.864 1.48 1.005 1.845-1.26.81-2.03-1.158-1.897-2.613-3.704-4.513-4.89l-.192-.038Zm-18.438.423c-1.793.712-2.909 2.548-4.01 4.061-.773.814-2.211 3.653.005 3.211 1.123-1.469 1.87-3.306 3.267-4.614.664-.7 2.73-2.013.738-2.658Zm24.57 11.072c-1.659.435-.468 2.667-.99 3.895a13.427 13.427 0 0 1-1.497 4.435c-.23 1.659 1.991 1.165 2.018-.199a14.277 14.277 0 0 0 1.254-7.552.865.865 0 0 0-.785-.579Zm-30.18.666c-1.677.386-.633 2.667-.608 3.876.371 1.623.792 3.35 1.79 4.696 2.382.321.571-2.338.292-3.492a15.92 15.92 0 0 1-.684-4.39.877.877 0 0 0-.79-.69Zm24.558 11.81c-1.755.865-3.303 2.266-5.274 2.765-1.162-.016-3.074 1.271-1.331 2.102 2.66-.447 5.163-1.733 7.236-3.445.472-.506.06-1.432-.631-1.421Zm-19.151.043c-2.004.786.416 2.405 1.43 2.913 1.608.904 3.379 1.636 5.208 1.877 1.77-.804-.228-2.094-1.357-2.073-1.75-.537-3.403-1.396-4.798-2.586l-.227-.104-.256-.027Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-non-interrupting-timer"><path d="M15.991 8.7c-3.018-.042-5.92 1.925-7.03 4.725-1.138 2.695-.509 6.011 1.537 8.102 1.99 2.142 5.267 2.93 8.013 1.927 2.877-.98 4.99-3.826 5.067-6.87.153-2.956-1.624-5.88-4.299-7.135a7.551 7.551 0 0 0-3.288-.75Zm0 1.383c2.758-.052 5.372 1.972 6.014 4.654.704 2.578-.482 5.516-2.79 6.867-2.358 1.48-5.682 1.085-7.617-.919-2.043-1.97-2.407-5.38-.84-7.743 1.11-1.764 3.149-2.88 5.233-2.86Zm1.962 1.764-2.074 3.762c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.182l1.993-3.614-.757-.418ZM16.12.358h-.232l-.22.004h-.012l-.221.006h-.012l-.22.01h-.012l-.22.013h-.012l-.22.016h-.012l-.22.019h-.005l-.006.001-.22.021h-.006l-.005.001-.22.025h-.011l-.22.028h-.005l-.006.002-.219.03h-.005l-.006.001-.218.033-.006.001-.006.001-.217.036-.006.001-.006.001-.217.039-.006.001-.006.001-.216.042-.006.001-.006.001-.215.045-.006.001-.006.002-.215.047-.006.002-.006.001-.214.05-.006.002-.006.002-.115.029-.152.053-.14.081-.122.106-.1.126-.075.143-.047.154-.018.16.012.16.042.156.07.145.095.13.118.11.137.086.15.059.158.03h.161l.132-.022.11-.028.202-.047.203-.046.208-.043.202-.039.206-.037.206-.034.205-.03.208-.03.205-.025.209-.023.208-.02.21-.017.209-.015.207-.011.21-.009.21-.006.207-.003h.21l.21.002.207.005.207.008.212.011.207.014.208.017.209.019.208.022.205.025.206.028.207.03.208.035.205.036.202.039.052.01.16.018.16-.012.156-.042.146-.07.13-.096.109-.119.085-.136.06-.15.03-.159v-.16l-.03-.16-.059-.15-.086-.136L19.823.9l-.13-.096-.145-.07-.128-.038-.057-.011-.006-.002h-.006L19.135.64l-.006-.001-.006-.001-.217-.039H18.9l-.006-.002-.217-.035-.006-.001-.006-.001-.218-.032-.006-.001-.006-.001-.218-.03h-.006l-.006-.001-.219-.027h-.011l-.22-.024-.005-.001h-.006l-.22-.021h-.006L17.512.42l-.22-.017-.005-.001h-.006l-.22-.015h-.012l-.22-.012h-.012l-.22-.01h-.012l-.22-.005h-.012l-.221-.003h-.012Zm8.715 2.783-.157.034-.149.063-.134.089-.116.112-.092.132-.067.147-.038.157-.008.16.021.16.051.153.079.141.103.124.102.087.052.038h.001l.087.064v.001l.082.061.002.001.076.059h.001l.084.065.082.066.002.001.079.063.002.002.077.063.081.067.002.002.077.065.076.065.001.002.08.07.078.07h.002l.075.068.077.072.002.001.073.069.077.073.072.07.002.001.077.076.07.07v.001l.075.076.07.073.002.001.074.079.002.002.069.074.069.075.074.082.07.08.002.001.068.079h.001l.067.079.068.082.065.078.001.002.068.083.067.084.063.081.001.002.067.087.002.002.063.084.001.001.064.087.008.01.008.01.095.12.093.121.09.119.087.119.088.122.086.123.084.12.081.122.001.002.084.126.08.126.08.127.077.126.079.131.074.127.075.131.073.131.07.13.07.133.069.133.045.09.086.137.109.119.13.096.144.07.156.042.16.013.16-.017.155-.047.143-.075.126-.1.106-.121.082-.14.054-.151.025-.16-.005-.16-.035-.158-.05-.124-.048-.095-.002-.004-.002-.004-.073-.14-.002-.005-.002-.004-.074-.14-.002-.004-.002-.004-.076-.14-.002-.003-.002-.004-.077-.139-.003-.004-.002-.004-.078-.138-.003-.004-.002-.003-.08-.137-.002-.004-.003-.004-.081-.136-.002-.004-.003-.004-.083-.136-.002-.003-.002-.004-.085-.135-.002-.004-.003-.003-.085-.134-.003-.004-.002-.004-.087-.132-.003-.004-.003-.004-.088-.132-.003-.003-.002-.004-.09-.13-.003-.005-.003-.003-.091-.13-.003-.004-.002-.004-.093-.129-.003-.003-.003-.004-.094-.128-.003-.004-.003-.003-.095-.127-.003-.004-.003-.004-.097-.125-.003-.004-.003-.004-.09-.114-.06-.082-.003-.003-.002-.003-.069-.092-.002-.003-.002-.003-.07-.09-.003-.003-.002-.003-.07-.09-.003-.003-.002-.003-.071-.09-.002-.003-.003-.002-.072-.089-.002-.003-.002-.003-.073-.088-.002-.003-.002-.002-.074-.087-.002-.003-.002-.003-.074-.086-.003-.003-.002-.003-.074-.086-.003-.002-.002-.003-.075-.085-.003-.003-.002-.002-.076-.084-.002-.003-.003-.003-.076-.083-.002-.003-.003-.003-.077-.082-.002-.003-.003-.002-.077-.082-.003-.003-.003-.002-.078-.081-.002-.003-.003-.003-.078-.08-.003-.002-.003-.003-.079-.08-.002-.002-.003-.002-.08-.08-.002-.002-.003-.002-.08-.078-.003-.003-.003-.002-.08-.077-.003-.003-.003-.002-.082-.077-.002-.002-.003-.002-.082-.076-.003-.002-.002-.003-.083-.075-.003-.002-.002-.003-.084-.074-.002-.002-.003-.002-.084-.074-.003-.002-.002-.002-.085-.073-.002-.002-.003-.003-.085-.071-.003-.003-.002-.002-.086-.07-.003-.003-.002-.002-.086-.07-.003-.003-.003-.002-.086-.07-.003-.002-.003-.002-.087-.069-.002-.002-.003-.002-.088-.068-.002-.002-.003-.002-.088-.067-.003-.003-.003-.002-.088-.066-.003-.002-.003-.002-.089-.066-.003-.002-.003-.002-.057-.042-.14-.082-.15-.055-.16-.026-.16.004Zm-18.458.426-.157.037-.148.066-.111.074-.007.006-.003.002-.003.002-.086.069-.003.002-.002.002-.086.07-.003.002-.002.002-.086.07-.002.003-.003.002-.085.071-.002.002-.003.003-.084.071-.003.003-.002.002-.084.072-.003.003-.002.002-.083.073-.003.003-.002.002-.083.074-.002.002-.003.003-.082.074-.003.003-.002.002-.081.076-.003.002-.003.002-.08.077-.003.002-.003.003-.08.076-.002.003-.003.002-.08.078-.002.002-.003.003-.079.078-.002.003-.003.002-.078.08-.003.002-.002.002-.078.08-.002.003-.003.002-.077.08-.003.004-.002.002-.077.081-.002.003-.003.003-.076.082-.002.002-.003.003-.075.082-.002.003-.003.003-.074.083-.003.003-.002.003-.074.084-.003.003-.002.002-.074.085-.002.003-.002.003-.073.085-.003.003-.002.003-.072.086-.002.003-.003.003-.071.087-.003.003-.002.002-.07.088-.003.003-.002.003-.07.088-.003.003-.002.003-.07.09-.002.002-.002.003-.069.09-.002.003-.003.003-.068.09-.002.003-.002.003-.067.092-.003.003-.002.003-.067.092-.002.003-.002.003-.066.092-.002.003-.002.004-.066.093-.002.003-.002.003-.065.094-.002.003-.002.004-.064.094-.002.003-.002.004-.063.095-.002.003-.002.003-.063.097-.002.003-.002.003-.046.073-.05.07-.003.002-.002.003-.067.093-.003.003-.002.003-.066.094-.002.003-.002.003-.066.094-.002.003-.002.003-.064.094-.002.004-.002.003-.064.094-.002.004-.002.003-.062.095-.002.003-.002.003-.062.096-.002.003-.002.003-.06.096-.003.003-.002.003-.06.096-.001.004-.002.003-.059.096-.002.004-.002.003-.058.097-.002.003-.001.003-.057.098-.002.003-.002.003-.056.098-.002.003-.002.003-.055.098-.002.004-.001.003-.055.098-.001.004-.002.003-.054.099-.001.003-.002.003-.052.1-.002.002-.002.004-.051.1-.002.002-.002.004-.05.1-.002.003-.002.003-.05.1v.003l-.002.004-.05.1V9.5l-.002.004-.048.1-.002.004-.001.003-.047.101-.002.003-.001.004-.013.027-.052.152-.024.16.006.16.037.157.064.148.091.133.114.114.134.09.147.065.157.036.162.006.159-.024.152-.053.14-.08.122-.105.1-.126.066-.117.01-.023.044-.095.045-.095.002-.003.042-.087.048-.097.048-.095v-.001l.048-.092.001-.001.047-.09.05-.093.002-.002.049-.09.052-.092.001-.002.051-.089.001-.002.051-.087.053-.088.001-.002.055-.091.057-.091.057-.09.001-.002.057-.089.055-.083.001-.002.06-.09.06-.088.062-.089.001-.001.06-.084.063-.088.065-.089.017-.023.016-.025.06-.094.059-.09v-.002l.058-.086.057-.086.001-.001.062-.09.062-.088.001-.002.06-.085.002-.002.06-.082.063-.087.064-.084.002-.002.061-.08.065-.084.064-.08v-.001l.067-.083.067-.082.07-.083.069-.08.063-.074.074-.083.068-.077.002-.002.07-.076.07-.075.072-.077.001-.001.067-.07.076-.078.002-.002.07-.07.075-.075.002-.002.072-.07.075-.072.002-.002.073-.069.074-.068.001-.001.08-.073.076-.068.002-.002.072-.063v-.001l.078-.067.079-.068.002-.001.08-.068.002-.002.077-.063.082-.066.001-.001.075-.06.002-.002.006-.004.117-.111.094-.131.068-.146.04-.156.01-.161-.019-.16-.049-.154-.076-.141-.102-.125-.123-.105-.14-.079-.153-.052-.16-.023-.16.007Zm24.596 11.088-.156.04-.146.067-.131.094-.112.117-.087.135-.061.15-.033.157-.004.134.007.142.005.152.004.15.002.149v.153l.001.011v.015l.004.11.002.11v.002l.002.106v.321l-.003.102-.002.106-.004.107-.005.105-.006.106-.006.106-.008.106v.002l-.008.103v.002l-.01.1-.01.105-.01.105-.013.105-.012.099v.002l-.014.108-.014.1-.016.105-.016.103v.002l-.017.099-.018.104-.019.103v.002l-.019.097-.02.104-.022.103v.001l-.022.098-.023.103v.002l-.024.096-.025.103v.002l-.024.096-.027.102v.003l-.026.093v.001l-.029.103v.002l-.03.099-.028.097v.002l-.03.095-.03.096v.001l-.033.1-.031.095v.002l-.035.1v.003l-.034.094v.003l-.035.096v.001l-.034.09v.002l-.038.098-.036.093v.002l-.038.095-.079.194-.08.188-.085.189-.087.19-.09.184-.092.183-.095.184-.05.093-.064.148-.034.158-.005.16.026.16.054.151.082.14.106.12.127.1.143.075.154.046.16.017.161-.013.156-.042.144-.071.13-.096.109-.119.072-.112.053-.099.003-.005.003-.006.102-.195.003-.006.003-.006.098-.196.003-.006.003-.006.096-.197.002-.006.003-.006.093-.2.002-.006.003-.006.09-.2.002-.006.003-.007.086-.202.003-.006.002-.006.084-.203.002-.005.001-.005.04-.102.002-.003.001-.003.04-.103.001-.003.001-.003.04-.103v-.004l.001-.003.039-.103v-.003l.002-.003.037-.104.001-.003.001-.003.037-.104v-.004l.002-.003.035-.104.002-.003v-.004l.035-.104.002-.004v-.003l.034-.105.002-.003v-.003l.034-.105v-.004l.002-.003.032-.106.001-.003.001-.003.031-.106.001-.003.001-.004.031-.106.001-.003.001-.004.03-.106v-.003l.002-.004.028-.107.001-.003.001-.003.028-.107.001-.004.001-.003.027-.107.001-.004v-.003l.027-.108.001-.003v-.004l.026-.108.001-.003v-.004l.025-.108.001-.003v-.004l.025-.108v-.004l.001-.003.023-.109v-.003l.001-.004.022-.109v-.003l.002-.004.02-.109.001-.004v-.003l.02-.11.002-.003v-.004l.02-.11v-.007l.019-.11v-.003l.001-.004.017-.11v-.004l.001-.003.017-.11v-.008l.016-.11v-.004l.001-.004.015-.11v-.008l.015-.111v-.008l.013-.111v-.007l.013-.112v-.007l.011-.112v-.004l.001-.004.01-.112v-.007l.01-.112v-.008l.008-.112v-.008l.007-.113v-.007l.007-.113v-.008l.005-.113v-.007l.005-.114v-.007l.003-.114v-.007l.003-.114v-.129l.001-.114v-.13l-.003-.114V16.5l-.003-.115v-.007l-.003-.102v-.155l-.003-.158v-.01l-.004-.158v-.01l-.006-.158v-.01l-.007-.148-.023-.16-.051-.152-.08-.14-.103-.124-.125-.102-.142-.077-.153-.05-.16-.02-.161.01Zm-30.213.66-.157.034-.149.063-.134.09-.115.113-.092.132-.067.147-.037.156-.009.134.001.11V16.308l.006.22v.012l.01.22v.012l.012.22v.006l.001.006.015.22v.005l.001.006.018.22.001.006v.006l.022.219v.006l.001.006.024.219.001.006v.006l.028.218.001.006v.006l.031.218.001.006.001.006.033.218.001.006.001.005.037.218v.006l.002.005.04.217v.006l.001.006.043.216.001.006.001.006.046.216v.005l.002.006.048.215.002.006.001.006.051.214.002.006v.006l.055.214.002.005.001.006.057.213.002.006.001.005.06.213.002.005.001.006.063.212.002.005.001.006.066.21.002.006.002.006.068.21.002.005.002.005.07.21.003.005.002.005.074.208.002.006.002.005.077.207.002.006.002.005.08.206.002.005.002.006.082.204.002.006.002.005.086.204.002.005.002.006.088.202.002.005.003.006.09.2.003.006.002.005.094.2.002.006.003.005.096.199.002.005.003.005.03.062.086.137.11.118.128.097.145.07.156.043.16.013.16-.017.155-.047.143-.074.127-.1.106-.121.081-.14.055-.15.025-.16-.005-.161-.034-.158-.05-.124-.028-.055-.092-.19-.087-.188-.087-.192-.083-.19-.08-.193-.078-.194-.076-.196-.073-.195-.07-.197-.067-.198-.065-.199-.063-.2-.059-.2-.056-.2-.055-.204-.05-.201-.049-.202-.046-.205-.043-.206-.04-.203-.038-.207-.034-.204-.032-.207-.028-.205-.026-.207-.023-.208-.02-.207-.018-.207-.014-.208-.011-.207-.009-.208-.005-.207-.002-.104-.017-.16-.046-.155-.074-.143-.1-.126-.121-.107-.139-.081-.152-.055-.159-.025-.161.004Zm24.585 11.83-.156.039-.146.068-.11.076-.015.012-.163.129-.166.127-.168.125-.17.124-.17.12-.172.118-.173.115-.176.114-.177.111-.18.11-.178.105-.182.104-.182.101-.184.1-.184.095-.189.095-.186.09-.188.089-.19.086-.19.082-.193.081-.195.078-.191.074-.197.073-.195.07-.196.065-.198.064-.198.061-.2.058-.2.055-.2.052-.2.049-.151.035-.153.05-.141.078-.125.103-.103.124-.078.14-.05.154-.022.16.009.16.038.157.067.147.093.132.116.112.134.089.149.062.158.034.16.003.133-.02.158-.035.006-.002.006-.001.213-.052.006-.002.007-.001.212-.056.006-.001.006-.002.212-.058.006-.002.006-.002.211-.061.006-.002.006-.002.21-.064.006-.002.006-.002.21-.067.005-.002.006-.002.208-.07.006-.002.006-.003.207-.073.006-.002.006-.002.206-.077.006-.002.005-.002.206-.08.005-.001.006-.003.204-.082.006-.002.005-.002.203-.085.006-.003.005-.002.202-.088.006-.002.005-.003.2-.09.006-.003.006-.003.2-.093.005-.003.005-.002.198-.096.006-.003.005-.003.197-.099.005-.002.005-.003.196-.102.005-.002.005-.003.195-.105.005-.002.005-.003.193-.107.005-.003.005-.003.191-.11.005-.003.005-.003.19-.112.005-.003.005-.003.189-.115.005-.003.005-.003.187-.117.005-.003.004-.004.186-.12.005-.003.004-.003.184-.122.005-.003.005-.004.182-.125.004-.003.005-.003.18-.128.005-.003.005-.003.179-.13.004-.003.005-.004.177-.132.004-.004.005-.003.175-.135.005-.003.004-.004.173-.137.005-.003.004-.004.019-.015.115-.113.092-.132.066-.147.038-.157.008-.16-.022-.16-.052-.153-.079-.14-.103-.124-.125-.102-.142-.078-.153-.05-.16-.02-.16.01Zm-19.17.054-.153.051-.14.079-.124.103-.103.125-.077.141-.05.153-.02.16.009.161.04.156.067.147.093.131.095.094.047.04.005.004.005.004.17.14.005.004.005.004.172.137.004.004.005.003.086.067.003.002.003.002.087.067.003.002.003.002.088.066.002.003.003.002.089.065.002.002.003.002.09.065.002.002.003.002.09.064.002.002.003.002.09.063.003.002.003.002.09.063.003.002.003.002.092.062.002.002.003.002.092.061.003.002.003.002.092.06.003.003.003.001.093.06.003.002.003.002.093.06.003.001.003.002.094.058.003.002.003.002.095.058.003.001.003.002.095.057.003.002.003.002.095.056.003.002.003.002.096.055.004.002.003.001.096.055.003.002.003.002.098.053.003.002.003.002.097.053.004.002.003.001.098.053.003.001.003.002.099.052.003.001.003.002.1.05.003.002.003.002.1.05.003.002.003.001.1.05h.003l.004.003.1.048.004.001.003.002.101.048.003.001.004.002.101.046.004.002.003.001.102.046.004.002.003.001.103.045.003.002.003.001.103.045.004.001.003.002.104.043.003.001.004.002.104.042.003.002.004.001.104.042.004.001.003.002.105.04.004.002.003.001.106.04.003.002h.004l.106.04.004.001.003.002.107.038.003.001.004.001.107.038.003.001.004.001.107.037.004.001.004.001.108.036.003.001.004.001.108.035.004.001.003.001.11.034.003.001.004.001.109.033.004.002h.003l.11.033h.004l.003.002.11.031.004.001.004.001.084.023.081.028.004.001.003.001.109.037.003.001.004.001.109.036.003.001.004.001.109.035h.003l.004.002.11.033.003.001.003.001.11.033.003.001.004.001.109.031.004.002h.003l.11.031.003.001.004.001.11.03h.003l.003.001.11.029h.004l.003.002.11.027.003.001.004.001.11.027h.003l.004.001.004.001.16.022.16-.008.157-.038.147-.067.132-.092.112-.116.09-.134.062-.149.034-.157.004-.161-.025-.16-.055-.151-.082-.139-.107-.12-.127-.1-.143-.074-.124-.04h-.003l-.104-.025-.103-.026h-.002l-.095-.026h-.001l-.101-.027h-.002l-.1-.028h-.002l-.103-.03-.104-.032-.097-.03h-.002l-.103-.033-.102-.033-.101-.034-.106-.036-.027-.01-.027-.007-.107-.03-.104-.029-.104-.03h-.002l-.097-.03-.102-.032-.102-.032-.102-.034-.103-.035-.096-.034-.1-.036-.101-.037h-.002l-.094-.036-.096-.037-.097-.04h-.002l-.099-.04-.098-.042h-.002l-.092-.04-.097-.043-.095-.043-.097-.044h-.002l-.09-.043-.094-.045-.094-.046-.093-.047-.09-.046-.096-.05-.088-.047-.002-.001-.09-.049-.094-.052-.002-.002-.087-.049-.087-.05h-.002l-.088-.053h-.001l-.09-.055-.086-.052-.002-.001-.089-.055-.084-.054h-.002l-.09-.059h-.001l-.085-.056-.001-.001-.084-.056-.082-.056h-.001l-.086-.06-.082-.058H7.79l-.086-.062-.002-.002-.08-.058-.081-.06h-.001l-.085-.064-.002-.002-.076-.058-.002-.002-.082-.064-.161-.128-.162-.133-.04-.034-.132-.092-.147-.066-.157-.038-.16-.008-.16.022Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-none"><path d="M15.847.004C9.61-.016 3.624 4.014 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0 0 15.846.004Zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625-4.814-3.84-6.538-10.94-4.067-16.57 2.14-5.206 7.515-8.775 13.147-8.71.097-.001.194-.002.29-.001Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-parallel-multiple"><path d="M15.847 0C9.61-.02 3.624 4.01 1.257 9.775-1.235 15.485.06 22.577 4.42 27.03c4.193 4.513 11.101 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.268.403-6.228-3.26-12.441-8.87-15.154A15.924 15.924 0 0 0 15.846 0Zm.439 1.729c6.105.033 11.856 4.45 13.435 10.359 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.625C2.101 23.17.377 16.07 2.848 10.44c2.134-5.2 7.522-8.78 13.147-8.71.097-.001.194-.002.29-.001ZM13.504 9.08v4.427H9.077v4.98h4.427v4.427h4.98v-4.427h4.428v-4.98h-4.427V9.08h-4.98Zm.83.83h3.32v4.427h4.428v3.32h-4.427v4.427h-3.32v-4.453H9.906v-3.294h4.427V9.91Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-signal"><path d="M15.995.005C9.705-.08 3.643 3.968 1.257 9.78-1.235 15.49.06 22.581 4.42 27.034c4.193 4.513 11.102 6.17 16.887 4.058 5.996-2.042 10.423-7.93 10.664-14.269.403-6.227-3.26-12.44-8.87-15.153A15.924 15.924 0 0 0 15.994.005Zm0 1.73c6.213-.108 12.122 4.355 13.726 10.357 1.678 5.653-.592 12.198-5.463 15.547-5.06 3.719-12.564 3.45-17.343-.626-4.814-3.838-6.538-10.939-4.067-16.57 2.14-5.205 7.515-8.774 13.147-8.708Zm0 6.776L9.19 20.724H22.8L15.995 8.511Zm0 1.777 5.332 9.572H10.662l5.333-9.572Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-start-event-timer"><path d="M16 0C7.174 0 0 7.174 0 16s7.174 16 16 16 16-7.174 16-16S24.826 0 16 0Zm0 1.73c7.892 0 14.27 6.378 14.27 14.27 0 7.891-6.379 14.27-14.27 14.27S1.73 23.891 1.73 16C1.73 8.108 8.108 1.73 16 1.73Zm-.143 6.676c-2.967.02-5.797 1.97-6.89 4.727-1.138 2.695-.51 6.012 1.537 8.102 1.99 2.142 5.268 2.932 8.014 1.928 2.878-.98 4.992-3.827 5.068-6.87.153-2.957-1.624-5.881-4.3-7.137a7.552 7.552 0 0 0-3.43-.75Zm.27 1.383c2.71.012 5.254 2.015 5.886 4.656.704 2.577-.482 5.517-2.791 6.867-2.358 1.48-5.682 1.085-7.618-.918-2.043-1.971-2.407-5.381-.84-7.745 1.11-1.763 3.15-2.88 5.234-2.86h.13Zm1.833 1.765-2.074 3.763c-.64.068-.793 1.04-.202 1.3.39.27.696-.18 1.052-.165h3.17v-.865h-3.181l1.992-3.615-.757-.418Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-subprocess-collapsed"><path d="M5.637 3A5.644 5.644 0 0 0 0 8.637v15.417a5.644 5.644 0 0 0 5.637 5.637h20.726A5.644 5.644 0 0 0 32 24.054V8.637A5.644 5.644 0 0 0 26.363 3H5.637Zm0 1.778h20.726a3.83 3.83 0 0 1 3.859 3.859v15.417a3.83 3.83 0 0 1-3.859 3.858h-4.201V16.695H9.838v11.217H5.637a3.83 3.83 0 0 1-3.859-3.858V8.637a3.83 3.83 0 0 1 3.859-3.859Zm5.33 13.046h10.066v10.065H10.967V17.824Zm4.189 1.431V22.06H12.35v1.689h2.804V26.554h1.69V23.749h2.804V22.06h-2.804V19.255h-1.69Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-subprocess-expanded"><path d="M5.636 3A5.642 5.642 0 0 0 0 8.636v15.418a5.643 5.643 0 0 0 5.636 5.636h20.728A5.643 5.643 0 0 0 32 24.054V8.636A5.642 5.642 0 0 0 26.364 3H5.636Zm0 1.778h20.728a3.83 3.83 0 0 1 3.858 3.858v15.418a3.83 3.83 0 0 1-3.858 3.858h-4.203V16.723H9.84v11.189H5.636a3.83 3.83 0 0 1-3.858-3.858V8.636a3.83 3.83 0 0 1 3.858-3.858Zm5.331 13.074h10.066v10.06H10.967v-10.06Zm1.336 3.996v1.711h7.394v-1.71h-7.394Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-task-none"><path d="M6.494 2.667C2.916 2.667 0 5.57 0 9.142v13.383C0 26.097 2.916 29 6.494 29h19.012C29.084 29 32 26.097 32 22.525V9.142c0-3.572-2.916-6.475-6.494-6.475H6.494Zm0 2h19.012c2.509 0 4.494 1.98 4.494 4.475v13.383C30 25.02 28.015 27 25.506 27H6.494C3.985 27 2 25.02 2 22.525V9.142c0-2.495 1.985-4.475 4.494-4.475Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-text-annotation"><path d="M22.087 0v31.647H32v-1.788h-8.125V1.788H32V0h-9.913Zm-2.924 13.999-2.737 2.167 2.167 2.738 2.738-2.167-2.168-2.738Zm-5.475 4.335L10.95 20.5l2.168 2.738 2.737-2.168-2.167-2.737Zm-5.475 4.335-2.738 2.167 2.168 2.738 2.737-2.168-2.167-2.737Zm-5.476 4.335L0 29.17l2.167 2.738 2.738-2.168-2.168-2.737Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-transaction"><path d="M5.422 3A5.424 5.424 0 0 0 0 8.422v15.822a5.424 5.424 0 0 0 5.422 5.423h21.156A5.424 5.424 0 0 0 32 24.244V8.422A5.424 5.424 0 0 0 26.578 3H5.422Zm0 1.244h21.156a4.155 4.155 0 0 1 4.178 4.178v15.822a4.155 4.155 0 0 1-4.178 4.178H5.422a4.155 4.155 0 0 1-4.178-4.178V8.422a4.155 4.155 0 0 1 4.178-4.178Zm1.056 1.778a3.373 3.373 0 0 0-3.367 3.366v13.89a3.373 3.373 0 0 0 3.367 3.366h19.044a3.373 3.373 0 0 0 3.367-3.366V9.388a3.373 3.373 0 0 0-3.367-3.366H6.478Zm0 1.245h19.044c1.187 0 2.122.935 2.122 2.121v13.89a2.104 2.104 0 0 1-2.122 2.122H6.478a2.104 2.104 0 0 1-2.122-2.122V9.388c0-1.186.935-2.121 2.122-2.121Z" /></symbol><symbol  viewBox="0 0 32 32" id="bpmn-icon-user-task"><path fill-rule="evenodd" d="M10.263 7.468c-1.698 0-2.912 1.305-2.915 2.791v.001c0 .45.121.924.311 1.352.138.309.308.593.516.82-1.235.423-2.683 1.119-3.414 2.49l-.04.075v4.44h11.083v-4.44l-.04-.074c-.72-1.352-2.136-2.047-3.36-2.471.597-.608.774-1.392.774-2.192-.004-1.487-1.218-2.792-2.915-2.792Zm-1.16 1.583c.08 0 .165.003.26.008.757.045 1.012.181 1.207.31.196.13.334.252.851.268.404-.016.598-.087.737-.169.056-.033.103-.067.152-.1.128.275.197.578.198.893 0 .894-.154 1.52-.975 2.034l.08.604c.171.052.348.11.527.171.025.105.054.242.073.387.02.153.029.311.016.43a.422.422 0 0 1-.056.19c-.417.417-1.157.66-1.908.66-.75 0-1.49-.243-1.908-.66a.422.422 0 0 1-.056-.19 1.949 1.949 0 0 1 .016-.43c.02-.146.049-.284.074-.388.177-.062.352-.118.521-.17l.048-.648a.616.616 0 0 0-.126-.118c-.183-.138-.405-.44-.562-.793-.157-.353-.254-.757-.254-1.08 0-.387.105-.758.297-1.079l.11-.04c.143-.046.339-.09.679-.09Zm-1.448 4.304-.002.014c-.025.185-.04.387-.018.589.021.202.074.42.248.593.595.594 1.494.857 2.382.857.889 0 1.788-.263 2.382-.857.174-.174.227-.391.249-.593a2.496 2.496 0 0 0-.018-.59l-.002-.01c.903.396 1.776.963 2.258 1.81v3.599H13.53v-2.538h-.67v2.538H7.651v-2.538h-.67v2.538H5.39v-3.599c.483-.849 1.359-1.416 2.264-1.813ZM6.495 3C2.914 3 0 5.903 0 9.475v13.383c0 3.572 2.916 6.475 6.494 6.475h19.012c3.578 0 6.494-2.903 6.494-6.475V9.475C32 5.903 29.084 3 25.506 3H6.494Zm0 2h19.01C28.016 5 30 6.98 30 9.475v13.383c0 2.495-1.985 4.475-4.494 4.475H6.494C3.985 27.333 2 25.353 2 22.858V9.475C2 6.98 3.985 5 6.494 5Z" /></symbol><symbol   viewBox="0 0 128 64" id="bpmn-multiple-state"><defs><path id="bpmn-multiple-state_a" d="M9 9h110v47H9z" /><mask id="bpmn-multiple-state_b" width="110" height="47" x="0" y="0" fill="#fff" maskContentUnits="userSpaceOnUse" maskUnits="objectBoundingBox"><use xlink:href="#bpmn-multiple-state_a" /></mask></defs><g fill="none" fill-rule="evenodd"><path fill="#818798" d="M25 20.272 37.728 33 25 45.728 12.272 33 25 20.272Zm0 2.829L15.1 33l9.9 9.9 9.9-9.9-9.9-9.9Z" /><path fill="#D5D7DD" d="M17 47h16v6H17z" /><path fill="#818798" d="M35 32h27v2H35z" /><path fill="#818798" d="M60 30v6l6-3z" /><path fill="#D5D7DD" d="M80 34h21v6H80z" /><path fill="#818798" d="M111 12a5 5 0 0 1 5 5v31a5 5 0 0 1-5 5H70a5 5 0 0 1-5-5V17a5 5 0 0 1 5-5h41Zm0 2H70a3 3 0 0 0-3 3v31a3 3 0 0 0 3 3h41a3 3 0 0 0 3-3V17a3 3 0 0 0-3-3Z" /><path fill="#D5D7DD" d="M75 25h31v6H75z" /><use stroke="currentColor" stroke-dasharray="5 2" stroke-width="2" mask="url(#bpmn-multiple-state_b)" xlink:href="#bpmn-multiple-state_a" /></g></symbol><symbol viewBox="0 0 1024 1024"  id="camel-service-task"><path d="M884.16 653.12c-1.92-8.96-3.52-17.92-5.76-26.88-4.48-19.52-9.28-38.72-13.76-58.24-.32-1.6-1.6-2.88-2.56-5.12-7.36 16-4.48 31.36-.96 46.72 4.48 19.52 11.52 38.08 20.8 55.68 2.88 5.76 3.84 13.44 3.2 19.84-2.56 29.44-6.4 58.88-9.28 88.32-.64 5.76.64 11.84 2.24 17.6 4.16 15.04 2.56 30.08-.32 45.12-1.28 6.4-4.48 11.2-11.52 10.56-16.64-1.92-33.28-4.48-51.2-7.04 3.52-8.96 10.56-10.88 16.64-9.92 10.88 1.6 14.72-4.48 16.64-12.48 2.88-11.2 6.08-22.4 6.4-33.6 1.28-32.32.96-64.96-9.28-96.32-2.24-6.72-4.16-13.44-8-19.2-8.64-13.44-11.84-28.16-15.04-43.52-1.6-7.68-5.12-15.04-8.64-22.08-.96-2.24-4.8-4.8-6.72-4.48-1.92 0-4.8 3.84-4.8 6.4-.64 8.96-1.28 18.24-.64 27.52.64 9.6 1.92 19.2 3.52 28.8 1.6 9.6 3.2 19.2 6.08 28.48 2.56 8 2.24 15.04-1.6 22.4l-53.76 103.68c-2.88 5.44-5.12 11.52-7.04 17.28-5.12 14.72-16 22.08-31.04 23.04-9.6.64-19.52 0-29.12-1.28-3.52-.32-6.4-4.48-9.92-6.72 2.56-3.2 4.8-7.36 8-9.92 3.2-2.24 7.36-3.2 11.2-3.84 15.36-2.24 25.92-11.52 31.68-24.64 8.96-19.84 16.64-40.32 24-61.12 4.16-11.2 7.36-22.72 10.24-34.24 4.16-18.88-1.6-36.8-6.72-54.4-3.2-10.56-2.88-19.84.64-30.4 2.24-6.4 2.24-15.36-.96-21.44-12.48-25.28-24.32-50.88-31.68-78.08 0-.64-.96-1.28-1.92-2.24-2.24 1.28-4.8 2.24-7.04 3.52-24 13.76-48.64 24.96-74.88 33.28-5.44 1.6-10.24 4.8-15.68 7.04-2.88 1.28-6.08 2.24-9.28 2.56-38.4 2.24-76.8 3.2-114.24-9.28-5.44-1.92-11.2-2.56-16.64-4.16-8.64-2.24-13.76 1.28-13.76 10.24 0 25.92 2.24 51.84 8.96 77.12 5.12 19.2 8.64 38.72 8.64 58.88 0 14.4 4.8 28.8 7.36 43.2l13.44 73.28c1.6 8.96-5.12 18.88-15.68 20.48-9.28 1.6-18.88.96-28.16 1.28-5.12 0-10.56-.64-15.68-.96-6.4-.32-8-2.56-5.44-8.64 2.88-7.04 8.64-10.88 16-12.48 14.4-3.2 17.6-7.36 17.92-21.76.32-23.04-2.56-46.08-9.28-67.84-3.52-10.88-9.92-20.8-15.04-31.36-.96 0-1.6.32-2.56.64-.64 3.84-1.6 8-1.28 11.84 1.6 20.48 3.52 40.64 5.12 61.12.96 11.52 1.6 23.36 2.24 35.2 0 6.4-2.24 10.56-9.6 11.52-15.68 1.92-31.36 4.8-47.36 6.72-3.2.32-8.96-2.24-9.92-5.12-1.92-5.12 2.24-8.64 7.36-10.24 1.28-.32 2.56-.64 3.52-.96 11.52-4.48 21.44-10.56 22.4-24.96 1.28-20.48 3.52-40.64 4.48-61.12 0-6.08-1.28-12.8-3.84-17.92-8.32-16.96-10.24-34.24-5.44-52.16 3.52-12.8 3.84-25.6.64-38.4-.64-2.88 0-6.08-.64-8.96-1.28-6.4-1.6-13.76-4.8-18.88-8-12.8-13.76-26.56-16.32-41.28a26.208 26.208 0 0 0-9.6-16.32c-7.36-6.08-13.12-14.4-20.8-20.16-5.44-3.84-13.12-5.44-19.84-6.08-2.56 0-7.04 4.8-7.68 8.32-1.28 5.44-3.52 7.68-8.64 8.32-15.68 2.56-30.4-1.28-45.76-4.8-27.52-6.4-48-24.32-67.52-42.24-16-14.4-21.12-35.84-24.96-56.64-2.56-14.08-5.76-27.84-6.72-41.92-.64-12.48 1.6-25.28 2.24-37.76.64-7.68 1.28-15.36.64-23.04 0-2.88-3.52-6.08-6.08-8-11.84-7.36-23.04-15.68-38.08-16.32-6.72 0-12.16-9.28-9.92-18.88 1.92-9.6 4.8-19.52 10.24-27.52 3.2-5.12 11.2-8.32 17.6-9.6 14.72-2.56 29.12-5.76 43.2-11.84 14.4-6.08 28.16-7.04 40.96 5.12 6.72 6.4 15.68 8 25.28 6.72 3.84-.32 8.32 1.92 11.84 3.52.96.32 1.28 4.16.32 5.76-4.48 8.32-4.8 13.76 1.6 20.16 16 16 19.52 35.52 19.52 56.96 0 10.88.32 22.08 1.6 32.96 1.28 11.2 5.44 13.76 16.32 10.88 29.12-7.36 50.56-26.24 66.24-50.56 16-24.64 29.76-50.56 44.16-76.16 8-14.08 15.36-28.48 23.36-42.56 2.88-5.12 5.76-9.92 9.6-14.4 10.24-12.8 23.36-17.28 36.16-12.8 13.44 4.8 22.4 18.24 22.08 33.92 0 4.8-.64 9.6-1.6 14.08-2.24 8.96 0 16.64 3.84 24.64 5.76 12.8 11.2 25.92 16 39.36 3.84 9.92 7.36 20.16 16.64 25.92 4.48 2.88 10.56 4.16 16 5.12 5.76.64 10.24-3.2 10.24-8.64 0-24 9.28-45.76 14.4-68.16 2.24-10.24 1.92-20.8 4.16-31.04 3.84-17.28 16-26.88 32.64-30.08 15.36-2.88 27.84 2.56 38.4 15.04 6.08 7.04 13.44 13.76 21.76 17.6 27.84 13.12 47.04 34.24 60.16 61.12 7.36 15.04 14.72 30.08 20.48 45.76 3.84 9.92 5.76 20.48 7.36 31.04 1.92 13.44 8.64 21.12 21.76 24.96 19.84 6.08 36.16 17.28 48 34.88 6.72 9.92 9.28 20.8 8.96 32.64-.32 21.76 3.52 43.2 8 64.32 3.2 15.04 3.2 30.72 4.48 46.08 2.88 31.68 6.08 63.04 9.28 94.72 0 3.2.32 6.4.64 9.28-1.28 0-2.56.64-3.84.64z" /></symbol><symbol  viewBox="0 0 20 20" id="copy-service-task"><path d="M16.42 2.06a1.2 1.2 0 0 1 1.54 1.45l-.02.07-4.53 13.59c-.1.3-.32.55-.6.7-.57.29-1.26.07-1.58-.47l-.04-.07-2.84-5.68-5.68-2.84c-.23-.12-.42-.3-.54-.54l-.04-.08-.03-.08c-.2-.61.11-1.26.69-1.5l.07-.03 13.6-4.52Zm-.46 2.9-6.22 6.22 2.49 4.98 3.73-11.2Zm-.92-.92L3.83 7.78l4.98 2.49 6.23-6.22Z" /></symbol><symbol viewBox="0 0 1024 1024"  id="dmn-service-task"><path d="M138.88 186.56v650.88c0 26.56 21.44 48 48 48h650.56c26.56 0 48-21.44 48-48V186.88c0-26.56-21.44-48-48-48H186.56c-26.56 0-48 21.44-48 48zM372.16 838.4H201.28c-8.64 0-16-7.04-16-16V698.24h186.56v139.84zm0-186.56H185.28V512h186.56v139.84zM605.44 838.4H418.88V698.56h186.56V838.4zm0-186.56H418.88V512h186.56v139.84zM822.72 838.4H651.84V698.56H838.4v124.16c0 8.64-7.04 16-16 16zm16-186.56H652.16V512h186.56v139.84zm0-186.56H652.16V325.44h-46.72v139.84H418.88V325.44h-46.72v139.84H185.28V341.12c0-8.64 7.04-16 16-16h621.44c8.64 0 16 7.04 16 16v124.16z" /></symbol><symbol viewBox="0 0 1024 1024"  id="http-service-task"><path d="M511.68 83.84c-235.52 0-426.88 189.44-427.2 427.84-.32 235.84 189.12 428.16 426.56 428.48 235.84.32 426.88-189.12 428.48-427.84-.96-237.12-190.4-428.48-427.84-428.48zM238.72 462.4c8.64-7.68 16.64-16.32 25.92-23.36 12.16-9.28 26.88-12.8 41.92-12.8h120.96c20.8 0 39.36-8 56-20.16 17.92-13.12 35.84-26.24 53.76-39.04 18.88-13.44 38.08-26.88 56.96-40a30.4 30.4 0 0 1 5.44-3.2c.32.32.64.96.96 1.28-2.24 2.56-4.48 5.12-7.04 7.36-66.56 66.88-133.44 133.76-200 200.32a21.12 21.12 0 0 1-6.4 4.48c-27.52 8.96-49.92 25.28-70.08 45.44l-2.56 2.56c-.32.32-.96.64-2.24 1.28l-12.48-18.24c-20.8-31.04-41.6-62.4-62.4-93.44-3.52-5.12-3.2-8.32 1.28-12.16zm423.04-40.96c-18.88 27.2-38.08 54.4-57.28 81.6-4.48 6.08-9.6 11.84-13.76 17.92-12.48 18.24-17.6 38.72-17.6 60.8V694.4c0 21.12-7.36 39.04-22.08 53.76-5.12 5.12-10.56 10.24-15.36 15.68-2.56 2.88-4.8 2.88-8 .64-27.84-18.56-55.36-37.12-83.2-55.68-10.24-7.04-20.48-13.76-30.72-20.48 9.6-11.2 19.52-21.44 27.52-33.28 7.68-11.84 13.44-24.96 19.84-37.76 2.24-4.48 4.48-9.28 8-12.8C536.64 536.64 604.48 468.8 672 400.96c.96-.96 2.24-1.92 3.2-2.88.32.32.96.64 1.28.96-5.12 7.36-10.24 14.72-15.04 21.76zm88-131.52c-11.2 19.52-24 38.4-35.84 57.28-19.84 32-48.64 55.68-74.88 81.92C580.8 488 522.24 546.24 464 605.12c-1.92 1.92-3.2 4.16-4.16 6.72-8.64 29.12-27.2 52.16-48.32 72.96-5.76 5.76-11.84 11.2-17.28 17.28-3.2 3.52-5.44 3.2-8.32 0s-5.76-6.08-8.96-9.6c-3.84 3.52-6.72 6.72-9.6 9.6-5.12 5.12-9.28 6.72-15.68 2.56-6.72-4.48-12.16-10.56-18.24-16-.96-.96-1.6-2.24-2.88-3.84-3.52 2.88-6.72 5.76-10.24 8.64-4.8 3.52-9.6 7.36-15.04 10.56-2.56 1.6-6.4 1.28-9.6 1.6.32-3.2-.32-7.04 1.28-9.6 4.48-7.04 9.6-13.76 14.4-20.48 1.28-1.6 2.56-3.2 4.48-5.12-2.24-1.6-4.16-2.88-5.76-4.8-5.12-6.08-10.24-11.84-14.72-18.56-3.2-4.48-2.24-9.28 2.24-13.12 3.52-2.88 7.36-5.76 11.2-8.64v-3.52c-3.52-2.88-7.68-5.44-10.88-8.96-.96-.96-.96-4.8 0-5.76 20.8-20.8 40-43.2 66.56-56.64 7.04-3.52 14.72-6.08 21.76-9.6 3.84-1.92 8-3.52 10.56-6.4 74.88-74.88 149.76-150.08 224.96-224.64 11.52-11.2 25.6-19.84 38.72-29.44 18.56-13.44 37.12-26.88 58.88-34.56 8.64-2.88 17.6-5.12 26.56-5.12 8.96 0 13.12 5.44 13.44 14.72.64 12.48-3.84 24-9.6 34.24z" /><path d="M658.24 294.4c-1.6 0-3.84 1.6-4.8 2.88-3.2 6.08-5.76 12.48-8.96 19.52 11.84-1.28 21.76.32 29.76 8.32 8.32 8 9.92 18.24 9.28 29.12 1.6 0 2.24 0 2.56-.32 3.84-1.6 7.36-3.2 11.2-5.12 8-3.84 9.92-7.04 8.96-16-2.56-24.96-23.04-41.6-48-38.4z" /></symbol><symbol viewBox="0 0 1024 1024"  id="mail-service-task"><path d="M892.48 390.72V231.04c0-34.24-27.84-62.4-62.4-62.4h-216L539.2 108.8c-21.76-15.04-50.56-14.72-72 .64l-71.04 58.88H193.92c-34.24 0-62.4 27.84-62.4 62.4V388.8l-48 40v434.56c0 34.24 27.84 62.4 62.4 62.4h732.16c34.24 0 62.4-27.84 62.4-62.4V429.12l-48-38.4zm-41.6 88.64L512 618.88 173.12 479.36V231.04c0-11.52 9.28-20.8 20.8-20.8h636.16c11.52 0 20.8 9.28 20.8 20.8v248.32z" /><path d="M523.2 258.88c-40 0-73.28 12.16-99.84 36.48-25.6 23.36-38.72 51.52-38.72 84.48s11.2 57.28 33.28 77.44c24 21.44 56.64 32.32 97.92 32.32 35.84 0 68.16-9.6 97.28-28.48l-10.24-14.08c-25.28 16.96-53.76 25.28-85.76 25.28-30.4 0-54.4-8.32-72.32-24.64-18.56-16.96-27.84-40-27.84-69.12s9.6-53.12 28.48-72.64c20.48-20.8 46.4-31.04 77.76-31.04 28.48 0 51.84 7.04 70.4 21.76 19.52 15.36 29.44 35.52 29.44 60.16 0 17.92-5.44 33.92-16.64 48.32-11.84 15.36-26.24 23.36-43.2 23.36-4.8 0-7.36-2.24-7.36-6.72 0-6.4 5.44-28.8 16-67.52 6.4-21.76 11.52-38.72 16-49.92h-29.12l-1.28 3.2c-5.12-4.8-13.76-7.36-25.28-7.36-20.8 0-39.68 9.28-56.32 27.52-19.84 21.76-29.44 46.4-29.44 74.24s13.76 42.88 40.96 42.88c17.92 0 30.72-4.48 38.72-13.44 1.6-7.68 2.56-10.24 2.56-7.68 0 15.04 9.6 22.4 29.12 22.4 25.92 0 47.68-9.6 64.96-28.8 14.4-16.64 21.76-36.48 21.76-59.2 0-28.16-10.24-51.2-30.4-69.12-22.72-20.16-52.8-30.4-90.24-30.4zm8.96 127.36c-11.84 28.48-25.6 42.56-41.6 42.56-7.36 0-10.88-6.72-10.88-20.16 0-20.16 4.8-40 14.4-59.2 11.52-23.04 24.32-34.24 39.04-34.24 8.96 0 13.76 6.08 13.76 18.24s-4.8 30.4-14.4 53.12z" /></symbol><symbol viewBox="0 0 1024 1024"  id="mq-service-task"><path d="M834.24 186.56C638.72 54.72 376 241.92 265.28 324.8c-6.08 4.48 0 13.44 6.4 10.56 115.2-53.76 391.04-166.72 515.52-73.92 102.72 76.8 82.56 244.8 76.16 304.32-.64 4.48 5.44 6.4 7.68 2.56 32.96-58.88 131.2-248-36.8-381.76zm-81.6 502.08c-115.2 53.76-391.04 166.72-515.52 73.92-102.72-76.8-82.56-244.8-76.16-304.32.64-4.48-5.44-6.4-7.68-2.56-32.96 58.88-131.2 248 36.8 381.76C385.6 969.28 648.32 782.08 759.04 699.2c6.08-4.48 0-13.44-6.4-10.56z" /><path d="M264.32 436.8v222.72c0 14.72-2.56 23.36-7.68 26.56-4.48 2.24-13.44 4.16-26.56 5.44v21.12h93.12V691.2c-13.12-.96-22.08-2.88-26.88-6.08-4.48-3.2-6.72-11.84-6.72-25.92V433.92l80.32 278.72h17.92l80.32-278.08v224.32c0 15.04-2.56 24-7.68 26.88-3.84 2.24-12.8 4.16-26.88 5.44v21.12h101.12v-21.44c-14.72-1.28-24-3.2-28.16-6.08-4.48-3.2-6.72-12.16-6.72-26.24V435.84c0-14.72 2.56-23.36 8-26.88 4.8-2.88 13.76-5.12 26.88-6.08v-21.44h-76.16l-75.2 261.76-75.84-261.76H228.8v21.12c15.68 1.6 25.28 3.84 28.8 6.08 4.48 3.2 6.72 12.48 6.72 27.2zm522.24 226.88c-12.48 0-23.36-11.52-32.32-34.88 33.92-33.92 50.88-83.2 50.88-148.48 0-53.12-11.84-96.96-35.84-130.88-21.12-30.08-47.36-45.12-78.4-45.12s-57.6 15.04-78.72 45.12c-23.36 34.24-35.2 77.76-35.2 131.2s11.84 98.88 35.2 132.8c20.8 29.76 47.04 44.48 78.4 44.48 15.36 0 28.8-3.84 40.32-11.52 12.48 31.68 28.48 47.68 48.32 47.68 15.36 0 28.8-10.88 40.96-32.64l-9.92-17.28c-8.96 12.8-16.96 19.2-23.68 19.2zm-72.96-34.56c-6.72 3.2-13.12 4.8-19.84 4.8-19.52 0-29.12-11.52-29.12-34.24 0-9.28 2.24-16.96 6.4-23.04 4.16-5.76 8.96-8.64 14.4-8.64 13.44 0 25.92 19.52 38.4 58.24 0-.96-3.52 0-9.92 3.2zm31.68-27.52c-7.04-18.56-13.12-32.32-18.56-40.96-10.56-16.64-23.36-24.96-38.08-24.96-13.44 0-24 6.08-32.64 18.24-7.68 10.56-11.52 23.68-11.52 39.36 0 9.92 1.92 18.56 4.8 26.24-25.28-26.56-38.08-72.64-38.08-138.24 0-44.16 7.04-80 21.12-107.2 14.72-29.76 34.56-44.8 59.52-44.8 19.52 0 36.16 9.92 50.24 29.76 19.84 27.84 29.44 68.8 29.44 122.24s-8.64 95.36-25.92 120.32z" /></symbol><symbol viewBox="0 0 1024 1024"  id="rest-service-task"><path d="M915.84 446.4a31.712 31.712 0 0 0-33.92-28.8l-37.44 3.2c-17.28 1.6-36.48-10.56-43.2-26.56l-25.92-50.56c-9.28-14.4-8-37.12 3.2-50.24l24.32-28.8c11.2-13.12 9.6-33.28-3.84-44.16l-48-40.32a31.136 31.136 0 0 0-44.16 3.84l-24.32 28.8c-11.2 13.12-33.28 18.56-48.96 11.52l-54.08-16.96c-16.96-3.84-32-20.8-33.28-38.08l-3.2-37.44a31.712 31.712 0 0 0-33.92-28.8l-62.4 5.12c-17.28 1.6-30.08 16.64-28.8 33.92l3.2 37.44c1.6 17.28-10.56 36.48-26.56 43.2L344 248.64c-14.4 9.6-37.12 8-50.24-3.2l-28.8-24.32a31.136 31.136 0 0 0-44.16 3.84l-40.32 48c-11.2 13.12-9.6 32.96 3.84 44.16l28.8 24.32c13.12 11.2 18.56 33.28 11.52 48.96l-16.96 54.4c-3.84 16.96-20.8 31.68-38.08 33.28l-37.44 3.2c-17.28 1.6-30.08 16.64-28.8 33.92l5.12 62.4c1.6 17.28 16.64 30.08 33.92 28.8l37.44-3.2c17.28-1.28 36.48 10.56 42.88 26.56l25.92 50.56c9.28 14.4 8 37.12-3.2 50.24l-24.32 28.8c-11.2 13.12-9.6 32.96 3.84 44.16l48 40.32c13.12 11.2 32.96 9.6 44.16-3.84l24.32-28.8c11.2-13.12 33.28-18.24 48.96-11.52l54.4 17.28c16.96 3.84 31.68 20.8 33.28 38.08l3.2 37.44c1.6 17.28 16.64 30.08 33.92 28.8l62.4-5.12c17.28-1.6 30.08-16.64 28.8-33.92l-3.2-37.44c-1.6-17.28 10.56-36.48 26.56-42.88L680.32 776c14.4-9.6 37.12-8 50.24 3.2l28.8 24.32c13.12 11.2 33.28 9.6 44.16-3.84l40.64-48c11.2-13.12 9.6-33.28-3.84-44.16l-28.8-24.32C798.4 672 793.28 649.92 800 634.24l17.28-54.08c3.84-16.96 20.8-31.68 38.08-33.28l37.44-3.2c17.28-1.6 30.08-16.64 28.48-33.92l-5.12-62.72zM528.96 714.56c-112 9.28-210.24-73.6-219.84-185.6-9.28-112 73.6-210.24 185.6-219.84s210.24 73.6 219.84 185.6c9.28 112-73.6 210.24-185.6 219.84z" /><path d="M401.92 481.6c4.48 0 7.04-1.92 7.36-6.08V456l21.76 24s3.2 1.6 5.76 1.6c4.16 0 6.72-2.24 7.36-6.08a4.48 4.48 0 0 0-1.92-3.84l-16.32-16.32c11.52-2.24 17.6-7.68 17.92-16.64 0-13.44-8-20.16-24.32-20.16h-17.28c-4.8 0-7.36 2.24-7.36 7.04v49.92c0 4.16 2.56 6.08 7.36 6.08zm7.36-50.88h9.92c5.76 0 8.96 2.88 9.28 8 0 4.8-3.2 7.36-9.28 7.68h-9.92v-15.68zm82.56 44.8c0-3.84-2.56-5.76-6.72-5.76H467.2v-13.44h16c4.48 0 6.72-2.24 7.36-6.4-.64-3.84-2.88-6.08-7.36-6.08h-16v-12.8h17.28c4.16 0 6.72-2.24 6.72-6.08s-2.56-5.76-6.72-5.76h-24.32c-4.8 0-7.36 2.56-7.36 7.68v48.96c0 4.16 2.56 6.4 7.36 6.72h25.28c4.16 0 6.72-2.24 6.72-6.08zm28.8-5.44c-2.24 0-5.44-.64-9.6-1.92a25.472 25.472 0 0 0-6.72-1.28c-4.16 0-6.08 2.24-6.4 6.4 0 6.08 8 8.96 23.68 9.28 15.68-.64 24-7.36 25.28-19.84 0-9.28-7.36-15.68-21.76-19.84-7.36-1.92-10.88-4.16-10.88-6.72 0-3.52 2.88-5.44 8-5.44 1.92 0 4.48.32 7.68 1.28 2.56.64 4.16.96 5.44.96 4.16 0 6.08-2.56 6.4-6.72-.64-5.12-7.04-8-19.2-8.64-15.04.96-23.04 7.68-24 20.16 0 8 6.72 13.44 20.16 16.96 8 2.24 12.16 4.8 12.16 7.68 0 4.8-3.52 7.36-9.92 7.68zm59.2-39.36h10.56c4.16 0 6.08-2.24 6.4-6.08 0-3.84-2.56-5.76-6.4-5.76h-36.16c-3.52 0-5.44 2.24-5.76 5.76 0 4.16 2.24 6.08 5.76 6.08h10.56v44.8c0 4.16 2.56 6.08 7.36 6.08 4.8 0 7.36-1.92 7.68-6.08v-44.8zm-134.08 72.64c-3.84-8.32-9.92-12.48-18.24-12.48-8.32.32-14.08 4.48-17.6 12.48l-33.6 81.92v1.28s-.64 2.88-.64 4.16c.32 6.4 4.16 9.28 11.52 9.28 6.08 0 10.24-2.24 12.16-7.04l5.12-14.08h46.08l4.48 14.08c2.24 4.8 6.4 7.04 12.16 7.04 7.36 0 11.2-2.88 11.52-8.96 0-1.6-.32-3.52-1.28-5.76l-32.32-81.92zm-33.6 54.72 15.68-43.52 15.36 43.52h-31.04zm117.12-65.28h-29.76c-7.68.32-11.84 4.16-12.16 11.84v84.8c.32 7.04 4.48 10.56 12.16 10.56s11.84-3.52 12.16-10.56V564.8h18.24c25.92-1.6 39.68-13.44 41.28-35.84-1.6-22.4-15.68-34.24-41.92-35.84zm-.64 51.84h-16.96v-31.68h16.96c10.88.32 16.32 5.76 16.96 16-.96 9.92-6.4 15.04-16.96 16zm62.72-52.8c-7.68.32-11.84 4.16-12.16 11.84v85.76c.32 7.04 4.48 10.56 12.16 10.56s11.84-3.52 12.16-10.56v-85.76c-.32-7.36-4.48-11.52-12.16-11.84z" /></symbol><symbol viewBox="0 0 1024 1024"  id="sc-service-task"><path d="M513.28 824H283.52c-89.6-.32-157.12-40.32-200.64-118.4-10.24-18.24-15.36-39.36-20.8-59.52-3.84-14.08-6.08-29.44-5.76-44.16 1.6-68.48 27.84-126.08 80.32-170.88 29.44-24.96 63.36-40 100.8-48 7.04-1.6 13.44-8 18.56-13.44 24.64-26.24 47.36-54.72 73.6-79.36 23.68-22.08 53.12-35.84 83.2-48.32 50.56-20.8 103.04-22.72 155.2-15.68 55.68 7.36 106.88 30.4 147.84 69.44 55.04 46.72 83.52 99.2 97.28 132.48 3.52 6.4 8.96 12.8 15.36 15.68 53.12 25.28 88.64 65.6 108.16 121.28 12.48 35.84 14.08 72.32 4.48 107.52-15.04 56.32-47.68 101.12-100.8 128.64-31.68 16.32-64.96 23.68-100.8 23.04-75.52-.96-150.72 0-226.24 0zm-.96-37.12h234.24c21.44 0 41.92-3.52 61.76-11.52 76.16-30.72 119.04-115.84 95.04-194.56-15.04-49.6-46.4-86.08-95.36-105.92-11.84-4.8-21.76-12.16-25.92-24.64-11.84-39.36-35.2-71.04-62.72-101.12-40.64-44.48-89.6-73.92-148.16-85.12-65.92-12.8-129.28-2.24-187.52 32.64-41.92 24.96-73.6 60.48-101.12 99.84-10.88 15.36-24 22.4-41.92 24.64-11.2 1.6-23.04 4.16-33.28 8.64-64.64 29.12-102.72 79.68-113.6 149.12-6.72 43.2 3.84 84.8 27.52 121.28 37.76 57.28 90.88 87.36 160.64 86.72 76.48-.64 153.28 0 229.76 0z" /><path d="M640.32 403.84c5.12 15.04 10.56 27.52 13.44 40.64 9.6 40.32 17.92 81.28 13.76 123.2-5.12 49.6-23.04 92.48-71.68 113.92-16.64 7.36-35.2 12.8-53.12 13.76-39.36 1.92-79.04.64-119.36-1.28 9.28-3.52 18.24-7.68 27.84-10.24 76.8-21.12 129.28-70.72 163.2-141.44 4.16-8.64 12.8-19.2 4.48-32.96-3.52 4.8-6.72 8.32-8.96 12.48-25.92 45.76-63.36 80.32-109.44 104.32-23.04 11.84-49.28 18.56-74.24 26.88-13.76 4.48-28.48 6.08-42.24 10.56-35.2 11.52-52.8-6.08-58.88-37.12-10.56-55.04 13.76-96.64 61.76-118.72 20.16-9.28 44.48-10.24 67.2-14.08 24.96-4.16 50.88-4.16 74.88-10.56C570.88 472 605.12 448 632 413.44c1.92-2.56 4.48-5.12 8.32-9.6zM338.24 715.2c-7.68-.64-14.72-4.48-12.8-12.48 1.28-5.12 8-11.2 13.12-12.48 8.32-1.92 11.52 5.12 11.52 13.12 0 8.32-3.84 12.16-11.84 11.52z" /></symbol><symbol  stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 32 32" id="shell-service-task"><path d="M26.021 22.356H5.223c-.672 0-1.223-.59-1.223-1.312V5.311C4 4.59 4.55 4 5.223 4h20.798c.673 0 1.223.59 1.223 1.311v15.733c0 .722-.55 1.312-1.223 1.312zM7.17 11.264a.734.734 0 0 0-.539.236.866.866 0 0 0 0 1.153l2.79 2.99-2.753 2.95c-.294.314-.294.839 0 1.153s.783.315 1.077 0l3.29-3.526a.866.866 0 0 0 0-1.154L7.708 11.5a.734.734 0 0 0-.538-.236zm10.753 0H11.72c-.416 0-.759.367-.759.812s.343.813.759.813h6.202c.416 0 .759-.367.759-.813s-.343-.812-.759-.812z" /></symbol>',t.insertBefore(n,t.lastChild)};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",o):o()}const we=Symbol(),De=Symbol(),Iu=Symbol(),Ko=Symbol(),Ou=o=>(o="abckey123456",`<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
  xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
  xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
  targetNamespace="http://bpmn.io/schema/bpmn"
  id="Definitions_${o}">
  <bpmn:process id="${o}" name="测试流程" isExecutable="true"></bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="${o}"></bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>`);function B4(o,t){if(o.ownerDocument!==t.ownerDocument)try{return t.ownerDocument.importNode(o,!0)}catch{}return o}function P4(o,t){return t.appendChild(B4(o,t))}function y1(o,t){return P4(t,o),o}var ss=2,$u={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":ss,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":ss,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function M4(o,t){return $u[t]?o.style[t]:o.getAttributeNS(null,t)}function F4(o,t,n){var a=t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),r=$u[a];r?(r===ss&&typeof n=="number"&&(n=String(n)+"px"),o.style[a]=n):o.setAttributeNS(null,t,n)}function j4(o,t){var n=Object.keys(t),a,r;for(a=0,r;r=n[a];a++)F4(o,r,t[r])}function q4(o,t,n){return typeof t=="string"?M4(o,t):(j4(o,t),o)}var tl={svg:"http://www.w3.org/2000/svg"},E1='<svg xmlns="'+tl.svg+'"';function U4(o){var t=!1;o.substring(0,4)==="<svg"?o.indexOf(tl.svg)===-1&&(o=E1+o.substring(4)):(o=E1+">"+o+"</svg>",t=!0);var n=H4(o);if(!t)return n;for(var a=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)a.appendChild(r.firstChild);return a}function H4(o){var t;return t=new DOMParser,t.async=!1,t.parseFromString(o,"text/xml")}function Di(o,t){var n;return o=o.trim(),o.charAt(0)==="<"?(n=U4(o).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(tl.svg,o),t&&q4(n,t),n}const nl=Object.prototype.toString,Z4=Object.prototype.hasOwnProperty;function S0(o){return o===void 0}function Wo(o){return nl.call(o)==="[object Array]"}function z4(o){return nl.call(o)==="[object Object]"}function Lu(o){const t=nl.call(o);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function G4(o){if(!Wo(o))throw new Error("must supply array")}function gn(o,t){return Z4.call(o,t)}function K4(o,t){const n=ol(t);let a;return lr(o,function(r,i){if(n(r,i))return a=r,!1}),a}function Et(o,t){const n=ol(t);let a=[];return lr(o,function(r,i){n(r,i)&&a.push(r)}),a}function lr(o,t){let n,a;if(S0(o))return;const r=Wo(o)?X4:J4;for(let i in o)if(gn(o,i)&&(n=o[i],a=t(n,r(i)),a===!1))return n}function ls(o,t){if(S0(o))return[];G4(o);const n=ol(t);return o.filter(function(a,r){return!n(a,r)})}function W4(o,t,n={}){return t=Y4(t),lr(o,function(a){let r=t(a)||"_",i=n[r];i||(i=n[r]=[]),i.push(a)}),n}function Y4(o){return Lu(o)?o:t=>t[o]}function ol(o){return Lu(o)?o:t=>t===o}function J4(o){return o}function X4(o){return Number(o)}function Q4(o,t){let n=!1;return function(...a){n||(o(...a),n=!0,setTimeout(()=>{n=!1},t))}}function cs(o,...t){return Object.assign(o,...t)}function e5(o,t){let n={},a=Object(o);return lr(t,function(r){r in a&&(n[r]=o[r])}),n}function Lt(o,t){if(!o)return[];const n=o.get("extensionElements");if(!n)return[];const a=n.get("values");return!a||!a.length?[]:t?a.filter(r=>z.is(r,t)):a}function ge(o,t){return Lt(o,`flowable:${t}`)}const w1=.95,t5=1,C1=3;class n5 extends r4{constructor(n,a,r,i,s,l,c){super(n,a,r,i,s,l,c);H(this,"_overrideColor");const u=this.handlers,d=n&&n.defaultFillColor,p=n&&n.defaultStrokeColor;this._overrideColor=(n==null?void 0:n.overrideColor)||!1;function m(E){return r.computeStyle(E,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:ue.black,strokeWidth:2})}function f(E){return r.computeStyle(E,{strokeLinecap:"round",strokeLinejoin:"round",stroke:ue.black,strokeWidth:2,fill:"white"})}function h(E,w,b){b=m(b);const S=Di("path",{...b,d:w});return y1(E,S),S}function y(E,w,b,S,k){z4(S)&&(k=S,S=0),S=S||0,k=f(k);const N=w/2,A=b/2,O=Di("circle",{cx:N,cy:A,r:Math.round((w+b)/4-S),...k});return y1(E,O),O}const g={"bpmn:MessageEventDefinition":function(E,w,b={},S){const k=i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:w.width,containerHeight:w.height,position:{mx:.235,my:.315}}),N=S?ue.getStrokeColor(w,p,b.stroke):ue.getFillColor(w,d,b.fill),A=S?ue.getFillColor(w,d,b.fill):ue.getStrokeColor(w,p,b.stroke);return h(E,k,{fill:N,stroke:A,strokeWidth:1})},"bpmn:TimerEventDefinition":function(E,w,b={}){const S=y(E,w.width,w.height,.2*w.height,{fill:ue.getFillColor(w,d,b.fill),stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:2}),k=i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:w.width,containerHeight:w.height,position:{mx:.5,my:.5}});h(E,k,{stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:2});for(let N=0;N<12;N++){const A=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:w.width,containerHeight:w.height,position:{mx:.5,my:.5}}),O=w.width/2,$=w.height/2;h(E,A,{strokeWidth:1,stroke:ue.getStrokeColor(w,p,b.stroke),transform:"rotate("+N*30+","+$+","+O+")"})}return S},"bpmn:EscalationEventDefinition":function(E,w,b={},S){const k=i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:w.width,containerHeight:w.height,position:{mx:.5,my:.2}}),N=S?ue.getStrokeColor(w,p,b.stroke):ue.getFillColor(w,d,b.fill);return h(E,k,{fill:N,stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1})},"bpmn:ConditionalEventDefinition":function(E,w,b={}){const S=i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:w.width,containerHeight:w.height,position:{mx:.5,my:.222}});return h(E,S,{fill:ue.getFillColor(w,d,b.fill),stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1})},"bpmn:LinkEventDefinition":function(E,w,b={},S){const k=i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:w.width,containerHeight:w.height,position:{mx:.57,my:.263}}),N=S?ue.getStrokeColor(w,p,b.stroke):ue.getFillColor(w,d,b.fill);return h(E,k,{fill:N,stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1})},"bpmn:ErrorEventDefinition":function(E,w,b={},S){const k=i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:w.width,containerHeight:w.height,position:{mx:.2,my:.722}}),N=S?ue.getStrokeColor(w,p,b.stroke):ue.getFillColor(w,d,b.fill);return h(E,k,{fill:N,stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1})},"bpmn:CancelEventDefinition":function(E,w,b={},S){const k=i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:w.width,containerHeight:w.height,position:{mx:.638,my:-.055}}),N=S?ue.getStrokeColor(w,p,b.stroke):"none",A=h(E,k,{fill:N,stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1});return i4.rotate(A,45),A},"bpmn:CompensateEventDefinition":function(E,w,b={},S){const k=i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:w.width,containerHeight:w.height,position:{mx:.22,my:.5}}),N=S?ue.getStrokeColor(w,p,b.stroke):ue.getFillColor(w,d,b.fill);return h(E,k,{fill:N,stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1})},"bpmn:SignalEventDefinition":function(E,w,b={},S){const k=i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:w.width,containerHeight:w.height,position:{mx:.5,my:.2}}),N=S?ue.getStrokeColor(w,p,b.stroke):ue.getFillColor(w,d,b.fill);return h(E,k,{strokeWidth:1,fill:N,stroke:ue.getStrokeColor(w,p,b.stroke)})},"bpmn:MultipleEventDefinition":function(E,w,b={},S){const k=i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:w.width,containerHeight:w.height,position:{mx:.222,my:.36}}),{stroke:N}=b,A=S?ue.getStrokeColor(w,p,N):ue.getFillColor(w,d,b.fill);return h(E,k,{fill:A,stroke:N,strokeWidth:1})},"bpmn:ParallelMultipleEventDefinition":function(E,w,b={}){const S=i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:w.width,containerHeight:w.height,position:{mx:.458,my:.194}});return h(E,S,{fill:ue.getFillColor(w,d,b.fill),stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1})},"bpmn:TerminateEventDefinition":function(E,w,b={}){return y(E,w.width,w.height,8,{fill:ue.getStrokeColor(w,p,b.stroke),stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:4})}};function C(E,w,b={}){const S=ue.getSemantic(E),k=ue.isThrowEvent(S);return ge(S,"VariableListenerEventDefinition").length?g["bpmn:MultipleEventDefinition"](w,E,b,k):S.get("eventDefinitions")&&S.get("eventDefinitions").length>1&&S.get("parallelMultiple")?g["bpmn:ParallelMultipleEventDefinition"](w,E,b):ue.isTypedEvent(S,"bpmn:MessageEventDefinition")?g["bpmn:MessageEventDefinition"](w,E,b,k):ue.isTypedEvent(S,"bpmn:TimerEventDefinition")?g["bpmn:TimerEventDefinition"](w,E,b):ue.isTypedEvent(S,"bpmn:ConditionalEventDefinition")?g["bpmn:ConditionalEventDefinition"](w,E,b):ue.isTypedEvent(S,"bpmn:SignalEventDefinition")?g["bpmn:SignalEventDefinition"](w,E,b,k):ue.isTypedEvent(S,"bpmn:EscalationEventDefinition")?g["bpmn:EscalationEventDefinition"](w,E,b,k):ue.isTypedEvent(S,"bpmn:LinkEventDefinition")?g["bpmn:LinkEventDefinition"](w,E,b,k):ue.isTypedEvent(S,"bpmn:ErrorEventDefinition")?g["bpmn:ErrorEventDefinition"](w,E,b,k):ue.isTypedEvent(S,"bpmn:CancelEventDefinition")?g["bpmn:CancelEventDefinition"](w,E,b,k):ue.isTypedEvent(S,"bpmn:CompensateEventDefinition")?g["bpmn:CompensateEventDefinition"](w,E,b,k):ue.isTypedEvent(S,"bpmn:TerminateEventDefinition")?g["bpmn:TerminateEventDefinition"](w,E,b):null}const x=(E,w,b={})=>{b=_a(b,["fill","stroke"]);const S=u["bpmn:Task"](E,w,b),k=w.businessObject.get("type"),N={class:"custom-service",fill:ue.getStrokeColor(w,d,b.stroke),stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:0},A=Di("g",{class:"custom-node-marker"});switch(E.insertBefore(A,null),k){case"shell":const O=i.getStaticPath("SERVICE_SHELL");h(E,O,N);break;case"copy":const $=i.getStaticPath("SERVICE_COPY");h(E,$,N);break;case"camel":const V=i.getStaticPath("SERVICE_CAMEL");h(E,V,N);break;case"dmn":const I=i.getStaticPath("SERVICE_DMN");h(E,I,N);break;case"http":const B=i.getStaticPath("SERVICE_HTTP_1");h(E,B,N);const Z=i.getStaticPath("SERVICE_HTTP_2");h(E,Z,N);break;case"mail":const L=i.getStaticPath("SERVICE_MAIL_1");h(E,L,N);const F=i.getStaticPath("SERVICE_MAIL_2");h(E,F,N);break;case"mq":const G=i.getStaticPath("SERVICE_MQ_1");h(E,G,N);const ae=i.getStaticPath("SERVICE_MQ_2");h(E,ae,N);break;case"sc":const le=i.getStaticPath("SERVICE_SC_1");h(E,le,N);const U=i.getStaticPath("SERVICE_SC_2");h(E,U,N);break;case"rest":const te=i.getStaticPath("SERVICE_REST_1");h(E,te,N);const Q=i.getStaticPath("SERVICE_REST_2");h(E,Q,N);break;default:y(E,10,10,0,{fill:ue.getFillColor(w,d,b.fill),stroke:"none",transform:"translate(6, 6)"});const J=i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}});h(E,J,{fill:ue.getFillColor(w,d,b.fill),stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1}),y(E,10,10,0,{fill:ue.getFillColor(w,d,b.fill),stroke:"none",transform:"translate(11, 10)"});const ne=i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}});h(E,ne,{fill:ue.getFillColor(w,d,b.fill),stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1})}return S},D=(E,w,b={})=>{const{renderIcon:S=!0}=b;b=_a(b,["fill","stroke"]),ue.getSemantic(w).get("isInterrupting")===!1&&(b={...b,strokeDasharray:"6"});const N=y(E,w.width,w.height,{fillOpacity:w1,...b,fill:ue.getFillColor(w,d,b.fill),stroke:ue.getStrokeColor(w,p,b.stroke)});return S&&C(w,E,b),N},_=(E,w,b={})=>{const{renderIcon:S=!0}=b;b=_a(b,["fill","stroke"]);const k=ue.getSemantic(w),N=k.get("cancelActivity");b={strokeWidth:1.5,fill:ue.getFillColor(w,d,b.fill),fillOpacity:t5,stroke:ue.getStrokeColor(w,p,b.stroke)},N===!1&&(b.strokeDasharray="6");const A=y(E,w.width,w.height,b);return y(E,w.width,w.height,C1,{...b,fill:"none"}),S&&C(w,E,b),A},T=(E,w,b={})=>{const{renderIcon:S=!0}=b;b=_a(b,["fill","stroke"]);const k=y(E,w.width,w.height,{fillOpacity:w1,...b,fill:ue.getFillColor(w,d,b.fill),stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1.5});return y(E,w.width,w.height,C1,{fill:"none",stroke:ue.getStrokeColor(w,p,b.stroke),strokeWidth:1.5}),S&&C(w,E,b),k};this.handlers["bpmn:ServiceTask"]=x,this.handlers["bpmn:StartEvent"]=D,this.handlers["bpmn:BoundaryEvent"]=_,this.handlers["bpmn:IntermediateEvent"]=T}drawShape(n,a,r={}){let i,s="var(--color-bg-5)";if(!this._overrideColor){const l=ue.getDi(a);i=l.get("color:border-color")||l.get("bioc:stroke"),s=l.get("color:background-color")||l.get("bioc:fill")||"var(--color-bg-5)"}return z.is(a,"bpmn:Activity")?(r={stroke:i||"var(--color-activity)",fill:s,...r},super.drawShape(n,a,r)):z.is(a,"bpmn:StartEvent")?(r={stroke:i||"var(--color-start-event)",fill:s,...r},super.drawShape(n,a,r)):z.is(a,"bpmn:EndEvent")?(r={stroke:i||"var(--color-end-event)",fill:s,...r},super.drawShape(n,a,r)):z.is(a,"bpmn:BoundaryEvent")?(r={stroke:i||"var(--color-boundary-event)",fill:s,...r},super.drawShape(n,a,r)):z.is(a,"bpmn:CatchEvent")||z.is(a,"bpmn:ThrowEvent")?(r={stroke:i||"var(--color-catch-event)",fill:s,...r},super.drawShape(n,a,r)):z.is(a,"bpmn:Gateway")?(r={stroke:i||"var(--color-gateway)",fill:s,...r},super.drawShape(n,a,r)):super.drawShape(n,a,{stroke:i||"var(--color-element)",fill:s,...r})}drawConnection(n,a,r={}){let i;if(!this._overrideColor){const s=ue.getDi(a);i=s.get("color:border-color")||s.get("bioc:stroke")}return t0.isAny(a,["bpmn:SequenceFlow","bpmn:Association"])?(r={stroke:i||"#9cafcf",...r},super.drawConnection(n,a,r)):super.drawConnection(n,a,r)}}function _a(o,t=[]){return t.reduce((n,a)=>(o[a]&&(n[a]=o[a]),n),{})}class o5 extends s4{constructor(){super(),this.pathMap.SERVICE_SHELL={d:"m26.02111,22.35561l-20.79771,0c-0.67287,0 -1.22339,-0.59 -1.22339,-1.31112l0,-15.73338c0,-0.72111 0.55053,-1.31112 1.22339,-1.31112l20.79771,0c0.67287,0 1.22339,0.59 1.22339,1.31112l0,15.73338c0,0.72111 -0.55053,1.31112 -1.22339,1.31112zm-18.85252,-11.09203c-0.19574,0 -0.39149,0.07867 -0.53829,0.236c-0.29361,0.31467 -0.29361,0.83911 0,1.15378l2.78934,2.98934l-2.75264,2.95001c-0.29361,0.31467 -0.29361,0.83911 0,1.15378s0.78297,0.31467 1.07659,0l3.29093,-3.5269c0.29361,-0.31467 0.29361,-0.83911 0,-1.15378l-3.32763,-3.56623c-0.14681,-0.15733 -0.34255,-0.236 -0.53829,-0.236zm10.75364,0l-6.20261,0c-0.41595,0 -0.7585,0.36711 -0.7585,0.81289s0.34255,0.81289 0.7585,0.81289l6.20261,0c0.41595,0 0.7585,-0.36711 0.7585,-0.81289s-0.34255,-0.81289 -0.7585,-0.81289z"},this.pathMap.SERVICE_COPY={d:"m22.25426,4.36071c0.32142,-0.1 0.65571,-0.1 0.97713,0c0.78428,0.25 1.20856,1.05002 1.00284,1.81254l-0.02571,0.0875l-5.82421,16.98784c-0.12857,0.37501 -0.41142,0.68751 -0.77142,0.87502c-0.73285,0.36251 -1.61998,0.0875 -2.0314,-0.58751l-0.05143,-0.0875l-3.65138,-7.10014l-7.30276,-3.55007c-0.29571,-0.15 -0.53999,-0.37501 -0.69428,-0.67501l-0.05143,-0.1l-0.03857,-0.1c-0.25714,-0.76252 0.14143,-1.57503 0.88713,-1.87504l0.09,-0.0375s17.48549,-5.65011 17.48549,-5.65011zm-0.59142,3.62507l-7.99704,7.77515l3.20139,6.22512l4.79565,-14.00028zm-1.18284,-1.15002l-14.41267,4.67509l6.40277,3.11256l8.0099,-7.77515l0,0l0,-0.0125z"},this.pathMap.SERVICE_CAMEL={d:"m21.65023,16.92556c-0.04825,-0.2448 -0.08444,-0.476 -0.13269,-0.7208c-0.10856,-0.5168 -0.21712,-1.0336 -0.32569,-1.5504c0,-0.0408 -0.03619,-0.0816 -0.06031,-0.136c-0.16887,0.4216 -0.10856,0.8296 -0.02412,1.2376c0.10856,0.5168 0.27744,1.0064 0.49456,1.4824c0.07237,0.1496 0.0965,0.3536 0.07237,0.5304c-0.06031,0.7888 -0.15681,1.564 -0.21712,2.35281c-0.01206,0.1496 0.01206,0.3128 0.04825,0.4624c0.0965,0.3944 0.06031,0.8024 0,1.1968c-0.03619,0.1768 -0.10856,0.2992 -0.27744,0.2856c-0.39806,-0.0544 -0.78406,-0.1224 -1.20625,-0.1904c0.08444,-0.2448 0.25331,-0.2856 0.39806,-0.2584c0.25331,0.0408 0.34981,-0.1224 0.39806,-0.3264c0.07237,-0.2992 0.14475,-0.5984 0.15681,-0.8976c0.03619,-0.8568 0.02412,-1.7272 -0.21712,-2.55681c-0.04825,-0.1768 -0.0965,-0.3536 -0.193,-0.5168c-0.20506,-0.3536 -0.27744,-0.748 -0.34981,-1.156c-0.03619,-0.204 -0.12062,-0.3944 -0.20506,-0.5848c-0.02412,-0.0544 -0.10856,-0.1224 -0.15681,-0.1224c-0.04825,0 -0.10856,0.1088 -0.10856,0.1768c-0.01206,0.2448 -0.03619,0.4896 -0.01206,0.7344c0.01206,0.2584 0.04825,0.5168 0.08444,0.7616c0.03619,0.2584 0.07237,0.5168 0.14475,0.7616c0.06031,0.2176 0.04825,0.3944 -0.03619,0.5984l-1.26656,2.74721c-0.07237,0.1496 -0.12062,0.3128 -0.16887,0.4624c-0.12062,0.3944 -0.37394,0.5848 -0.73581,0.612c-0.22919,0.0136 -0.45837,0 -0.68756,-0.0408c-0.08444,0 -0.15681,-0.1224 -0.22919,-0.1768c0.06031,-0.0816 0.10856,-0.1904 0.193,-0.2584c0.07237,-0.0544 0.16887,-0.0816 0.26537,-0.1088c0.36187,-0.0544 0.61519,-0.3128 0.74787,-0.6528c0.21712,-0.5304 0.39806,-1.0744 0.56694,-1.6184c0.0965,-0.2992 0.16887,-0.5984 0.24125,-0.9112c0.0965,-0.5032 -0.03619,-0.9792 -0.15681,-1.4416c-0.07237,-0.2856 -0.07237,-0.5304 0.01206,-0.8024c0.04825,-0.1768 0.04825,-0.408 -0.02412,-0.5712c-0.2895,-0.6664 -0.579,-1.3464 -0.74787,-2.0808c0,-0.0136 -0.02412,-0.0408 -0.04825,-0.0544c-0.04825,0.0408 -0.10856,0.0544 -0.16887,0.0952c-0.56694,0.3672 -1.14594,0.6664 -1.76112,0.884c-0.13269,0.0408 -0.24125,0.1224 -0.37394,0.1904c-0.07237,0.0408 -0.14475,0.0544 -0.21712,0.068c-0.90469,0.0544 -1.80937,0.0816 -2.68994,-0.2448c-0.13269,-0.0544 -0.26537,-0.068 -0.39806,-0.1088c-0.20506,-0.0544 -0.32569,0.0408 -0.32569,0.272c0,0.6936 0.04825,1.3736 0.20506,2.0536c0.12062,0.5168 0.20506,1.0336 0.20506,1.564c0,0.3808 0.10856,0.7616 0.16887,1.1424l0.31362,1.9448c0.03619,0.2448 -0.12062,0.5032 -0.37394,0.544c-0.21712,0.0408 -0.44631,0.0272 -0.66344,0.0408c-0.12062,0 -0.25331,-0.0136 -0.37394,-0.0272c-0.14475,0 -0.193,-0.068 -0.13269,-0.2312c0.07237,-0.1904 0.20506,-0.2856 0.37394,-0.3264c0.33775,-0.0816 0.41012,-0.1904 0.42219,-0.5848c0,-0.612 -0.06031,-1.224 -0.21712,-1.8088c-0.08444,-0.2856 -0.22919,-0.5576 -0.34981,-0.8296c-0.02412,0 -0.03619,0 -0.06031,0.0136c-0.01206,0.1088 -0.03619,0.2176 -0.02412,0.3128c0.03619,0.544 0.08444,1.0744 0.12062,1.6184c0.02412,0.3128 0.03619,0.6256 0.04825,0.9384c0,0.1768 -0.04825,0.2856 -0.22919,0.3128c-0.37394,0.0544 -0.73581,0.1224 -1.12181,0.1768c-0.07237,0 -0.20506,-0.0544 -0.22919,-0.136c-0.04825,-0.136 0.04825,-0.2312 0.16887,-0.272c0.02412,0 0.06031,-0.0136 0.08444,-0.0272c0.26537,-0.1224 0.50662,-0.2856 0.53075,-0.6664c0.02412,-0.544 0.08444,-1.0744 0.10856,-1.6184c0,-0.1632 -0.02412,-0.34 -0.08444,-0.476c-0.193,-0.4488 -0.24125,-0.9112 -0.13269,-1.3872c0.08444,-0.34 0.08444,-0.68 0.01206,-1.02c-0.01206,-0.0816 0,-0.1632 -0.01206,-0.2448c-0.02412,-0.1768 -0.03619,-0.3672 -0.10856,-0.5032c-0.193,-0.34 -0.32569,-0.7072 -0.386,-1.1016c-0.02412,-0.1768 -0.10856,-0.3264 -0.22919,-0.4352c-0.16887,-0.1632 -0.31362,-0.3808 -0.49456,-0.5304c-0.13269,-0.0952 -0.31362,-0.1496 -0.47044,-0.1632c-0.06031,0 -0.16887,0.1224 -0.18094,0.2176c-0.02412,0.1496 -0.08444,0.204 -0.20506,0.2176c-0.37394,0.068 -0.71169,-0.0408 -1.07356,-0.1224c-0.65137,-0.1632 -1.13387,-0.6528 -1.59225,-1.1152c-0.37394,-0.3808 -0.49456,-0.952 -0.59106,-1.5096c-0.06031,-0.3672 -0.13269,-0.7344 -0.15681,-1.1152c-0.01206,-0.3264 0.03619,-0.6664 0.04825,-1.0064c0.01206,-0.204 0.02412,-0.408 0.01206,-0.612c0,-0.0816 -0.08444,-0.1632 -0.14475,-0.2176c-0.27744,-0.1904 -0.54281,-0.4216 -0.89262,-0.4352c-0.15681,0 -0.2895,-0.2448 -0.22919,-0.5032c0.04825,-0.2584 0.10856,-0.5168 0.24125,-0.7344c0.07237,-0.136 0.26537,-0.2176 0.41012,-0.2584c0.34981,-0.068 0.68756,-0.1496 1.01325,-0.3128c0.33775,-0.1632 0.66344,-0.1904 0.965,0.136c0.15681,0.1632 0.37394,0.2176 0.59106,0.1768c0.08444,0 0.193,0.0544 0.27744,0.0952c0.02412,0 0.02412,0.1088 0,0.1496c-0.10856,0.2176 -0.10856,0.3672 0.03619,0.5304c0.37394,0.4216 0.45837,0.9384 0.45837,1.5096c0,0.2856 0,0.5848 0.03619,0.8704c0.02412,0.2992 0.13269,0.3672 0.386,0.2856c0.68756,-0.1904 1.19419,-0.6936 1.55606,-1.3464c0.37394,-0.6528 0.69962,-1.3464 1.03737,-2.0264c0.193,-0.3808 0.36187,-0.7616 0.55487,-1.1288c0.07237,-0.136 0.13269,-0.2584 0.22919,-0.3808c0.24125,-0.34 0.55487,-0.4624 0.85644,-0.34c0.31362,0.1224 0.53075,0.4896 0.51869,0.8976c0,0.1224 -0.01206,0.2584 -0.03619,0.3808c-0.04825,0.2448 0,0.4352 0.0965,0.6528c0.13269,0.34 0.26537,0.6936 0.37394,1.0472c0.0965,0.2584 0.16887,0.5304 0.39806,0.6936c0.10856,0.0816 0.25331,0.1088 0.37394,0.136c0.13269,0.0136 0.24125,-0.0816 0.24125,-0.2312c0,-0.6392 0.21712,-1.2104 0.33775,-1.8088c0.04825,-0.272 0.04825,-0.5576 0.0965,-0.8296c0.0965,-0.4624 0.37394,-0.7208 0.772,-0.8024c0.36187,-0.0816 0.65137,0.068 0.90469,0.3944c0.14475,0.1904 0.31362,0.3672 0.51869,0.4624c0.65137,0.3536 1.10975,0.9112 1.41131,1.6184c0.16887,0.3944 0.34981,0.8024 0.4825,1.2104c0.0965,0.2584 0.13269,0.544 0.16887,0.8296c0.04825,0.3536 0.20506,0.5576 0.51869,0.6664c0.47044,0.1632 0.85644,0.4624 1.13387,0.9248c0.15681,0.2584 0.21712,0.5576 0.21712,0.8704c0,0.5848 0.08444,1.1424 0.193,1.7136c0.07237,0.3944 0.07237,0.816 0.10856,1.224c0.07237,0.8432 0.14475,1.6728 0.21712,2.51601c0,0.0816 0,0.1768 0.01206,0.2448c-0.03619,0 -0.06031,0.0136 -0.0965,0.0136l0,0l0.02412,0.0544z"},this.pathMap.SERVICE_DMN={d:"m4.01314,5.18141l0,16.14588c0,0.66057 0.55194,1.19411 1.2353,1.19411l16.70281,0c0.68336,0 1.2353,-0.53354 1.2353,-1.19411l0,-16.13317c0,-0.66057 -0.55194,-1.19411 -1.2353,-1.19411l-16.71595,0c-0.68336,0 -1.2353,0.53354 -1.2353,1.19411l0,0l0.01314,-0.0127zm5.99251,16.17128l-4.38925,0c-0.22341,0 -0.40739,-0.17785 -0.40739,-0.3938l0,-3.0869l4.7835,0l0,3.468l0,0l0.01314,0.0127zm0,-4.624l-4.79664,0l0,-3.468l4.7835,0l0,3.468l0,0l0.01314,0zm5.99251,4.624l-4.7835,0l0,-3.468l4.7835,0l0,3.468zm0,-4.624l-4.7835,0l0,-3.468l4.7835,0l0,3.468zm5.57198,4.624l-4.38925,0l0,-3.468l4.7835,0l0,3.0869c0,0.21596 -0.18398,0.3938 -0.40739,0.3938l0,0l0.01314,-0.0127zm0.40739,-4.6367l-4.7835,0l0,-3.468l4.7835,0l0,3.468zm0,-4.624l-4.7835,0l0,-3.468l-1.19587,0l0,3.468l-4.7835,0l0,-3.468l-1.19587,0l0,3.468l-4.80978,0l0,-3.0869c0,-0.21596 0.18398,-0.3938 0.40739,-0.3938l15.95375,0c0.22341,0 0.40739,0.17785 0.40739,0.3938l0,3.0869z"},this.pathMap.SERVICE_HTTP_1={d:"m13.86478,4.01167c-5.441,0 -9.85295,4.31949 -9.86478,9.74804c0,5.38185 4.36463,9.75972 9.85295,9.77139c5.45283,0 9.86478,-4.30782 9.90026,-9.75972c-0.02366,-5.4052 -4.40012,-9.77139 -9.88843,-9.77139l0,0.01167zm-6.30447,8.62731c0.20108,-0.17511 0.3785,-0.37358 0.60324,-0.53702c0.28388,-0.21014 0.6269,-0.29186 0.96992,-0.29186l2.79147,0c0.48496,0 0.91078,-0.18679 1.28928,-0.4553c0.41399,-0.30353 0.82798,-0.59539 1.24197,-0.88725c0.43765,-0.30353 0.87529,-0.61874 1.31294,-0.9106c0.03548,-0.02335 0.0828,-0.05837 0.13011,-0.07005c0,0 0.01183,0.02335 0.02366,0.02335c-0.04731,0.05837 -0.10645,0.11674 -0.1656,0.16344c-1.53767,1.52933 -3.08718,3.04699 -4.62485,4.56465c-0.04731,0.0467 -0.09463,0.08172 -0.14194,0.10507c-0.63873,0.21014 -1.15917,0.57204 -1.62047,1.03901l-0.05914,0.05837s-0.02366,0.01167 -0.04731,0.03502l-0.28388,-0.42027c-0.48496,-0.71213 -0.95809,-1.42426 -1.44305,-2.1364c-0.0828,-0.11674 -0.07097,-0.18679 0.02366,-0.28018l0,0zm9.77015,-0.94562c-0.43765,0.61874 -0.87529,1.23748 -1.32477,1.85621c-0.10645,0.14009 -0.22474,0.26851 -0.31936,0.4086c-0.28388,0.42027 -0.40216,0.88725 -0.40216,1.38924l0,2.56835c0,0.47865 -0.1656,0.88725 -0.50862,1.2258c-0.11828,0.11674 -0.24839,0.23349 -0.35485,0.3619c-0.05914,0.07005 -0.10645,0.07005 -0.18925,0.01167c-0.63873,-0.42027 -1.27745,-0.84055 -1.92801,-1.2725c-0.23657,-0.16344 -0.47313,-0.31521 -0.7097,-0.46697c0.22474,-0.25683 0.44947,-0.49032 0.63873,-0.75883c0.17742,-0.26851 0.30753,-0.57204 0.4613,-0.8639c0.04731,-0.10507 0.10645,-0.21014 0.18925,-0.29186c1.56133,-1.55268 3.12266,-3.09369 4.68399,-4.64637c0.02366,-0.02335 0.04731,-0.0467 0.07097,-0.07005c0,0 0.02366,0.01167 0.03548,0.02335c-0.11828,0.16344 -0.23657,0.33855 -0.34302,0.50199l0,0l0,0.02335zm2.03446,-2.98862c-0.26022,0.44362 -0.55593,0.87557 -0.82798,1.30752c-0.4613,0.72381 -1.12369,1.2725 -1.72693,1.86789c-1.34842,1.34254 -2.69685,2.67341 -4.04527,4.01596c-0.04731,0.0467 -0.07097,0.09339 -0.09463,0.15177c-0.20108,0.66544 -0.6269,1.19078 -1.11186,1.66943c-0.13011,0.12842 -0.27205,0.25683 -0.40216,0.39693c-0.07097,0.08172 -0.13011,0.07005 -0.18925,0s-0.13011,-0.14009 -0.20108,-0.22181c-0.0828,0.08172 -0.15377,0.15177 -0.22474,0.22181c-0.11828,0.11674 -0.21291,0.15177 -0.36668,0.05837c-0.15377,-0.10507 -0.28388,-0.24516 -0.42582,-0.3619c-0.02366,-0.02335 -0.03548,-0.0467 -0.07097,-0.09339c-0.0828,0.07005 -0.15377,0.12842 -0.23657,0.19846c-0.10645,0.08172 -0.22474,0.16344 -0.34302,0.24516c-0.05914,0.03502 -0.14194,0.03502 -0.22474,0.03502c0,-0.07005 0,-0.16344 0.02366,-0.22181c0.10645,-0.16344 0.22474,-0.31521 0.33119,-0.46697c0.02366,-0.03502 0.05914,-0.07005 0.10645,-0.11674c-0.04731,-0.03502 -0.09463,-0.07005 -0.13011,-0.10507c-0.11828,-0.14009 -0.23657,-0.26851 -0.34302,-0.42027c-0.07097,-0.10507 -0.04731,-0.21014 0.04731,-0.30353c0.0828,-0.07005 0.1656,-0.12842 0.26022,-0.19846l0,-0.08172c-0.0828,-0.07005 -0.17742,-0.12842 -0.24839,-0.21014c-0.02366,-0.02335 -0.02366,-0.10507 0,-0.12842c0.48496,-0.47865 0.9226,-0.98064 1.53767,-1.29585c0.1656,-0.08172 0.34302,-0.14009 0.50862,-0.22181c0.0828,-0.0467 0.18925,-0.08172 0.24839,-0.15177c1.72693,-1.70445 3.46568,-3.42057 5.19261,-5.12502c0.27205,-0.25683 0.59141,-0.4553 0.89895,-0.67711c0.42582,-0.30353 0.85164,-0.61874 1.36025,-0.78218c0.20108,-0.07005 0.40216,-0.11674 0.61507,-0.11674s0.30753,0.12842 0.30753,0.33855c0.01183,0.28018 -0.09463,0.54869 -0.22474,0.78218l0,0l0,0.01167z"},this.pathMap.SERVICE_HTTP_2={d:"m12.86,5.75s-0.08,0.03 -0.09,0.06c-0.06,0.12 -0.11,0.24 -0.18,0.38c0.23,-0.02 0.43,0 0.58,0.16c0.16,0.16 0.19,0.36 0.18,0.57c0.03,0 0.04,0 0.05,0c0.08,-0.03 0.14,-0.06 0.22,-0.1c0.16,-0.07 0.19,-0.14 0.18,-0.31c-0.05,-0.49 -0.45,-0.81 -0.94,-0.75l0,-0.01z"},this.pathMap.SERVICE_MAIL_1={d:"m22.07399,10.40053l0,-3.48738c0,-0.74889 -0.60144,-1.36366 -1.35882,-1.36366l-4.70017,0l-1.62613,-1.30777c-0.47893,-0.32415 -1.10265,-0.32415 -1.57044,0.01118l-1.54816,1.28541l-4.38831,0c-0.74624,0 -1.35882,0.60359 -1.35882,1.36366l0,3.45385l-1.04696,0.87185l0,9.4897c0,0.74889 0.60144,1.36366 1.35882,1.36366l15.92712,0c0.74624,0 1.35882,-0.60359 1.35882,-1.36366l0,-9.47852l-1.04696,-0.83831l0.00001,-0.00001zm-0.90217,1.93371l-7.37326,3.05146l-7.37326,-3.05146l0,-5.42109c0,-0.25708 0.20048,-0.45828 0.45665,-0.45828l13.83321,0c0.25617,0 0.45665,0.2012 0.45665,0.45828c0,0 0,5.42109 0,5.42109l0.00001,0z"},this.pathMap.SERVICE_MAIL_2={d:"m13.71,8c-0.78,0 -1.43,0.24 -1.95,0.71c-0.5,0.46 -0.76,1.01 -0.76,1.65s0.22,1.12 0.65,1.51c0.47,0.42 1.11,0.63 1.91,0.63c0.7,0 1.33,-0.19 1.9,-0.56l-0.2,-0.27c-0.49,0.33 -1.05,0.49 -1.68,0.49s-1.06,-0.16 -1.41,-0.48c-0.36,-0.33 -0.54,-0.78 -0.54,-1.35s0.19,-1.04 0.56,-1.42c0.4,-0.41 0.91,-0.61 1.52,-0.61c0.56,0 1.01,0.14 1.38,0.43c0.38,0.3 0.58,0.69 0.58,1.18c0,0.35 -0.11,0.66 -0.33,0.94c-0.23,0.3 -0.51,0.46 -0.84,0.46c-0.09,0 -0.14,-0.04 -0.14,-0.13c0,-0.12 0.11,-0.56 0.31,-1.32c0.13,-0.43 0.23,-0.76 0.31,-0.97l-0.57,0l-0.03,0.06c-0.1,-0.09 -0.27,-0.14 -0.49,-0.14c-0.41,0 -0.77,0.18 -1.1,0.54c-0.39,0.43 -0.58,0.91 -0.58,1.45s0.27,0.84 0.8,0.84c0.35,0 0.6,-0.09 0.76,-0.26c0.03,-0.15 0.05,-0.2 0.05,-0.15c0,0.29 0.19,0.44 0.57,0.44c0.51,0 0.93,-0.19 1.27,-0.56c0.28,-0.33 0.43,-0.71 0.43,-1.16c0,-0.55 -0.2,-1 -0.59,-1.35c-0.44,-0.39 -1.03,-0.59 -1.76,-0.59l-0.01,0l-0.02,-0.01zm0.18,2.49c-0.23,0.56 -0.5,0.83 -0.81,0.83c-0.14,0 -0.21,-0.13 -0.21,-0.39c0,-0.39 0.09,-0.78 0.28,-1.16c0.22,-0.45 0.48,-0.67 0.76,-0.67c0.18,0 0.27,0.12 0.27,0.36s-0.09,0.59 -0.28,1.04l0,0l-0.01,-0.01z"},this.pathMap.SERVICE_MQ_1={d:"m20.50197,5.06155c-4.36488,-3.06447 -10.22662,1.28779 -12.69472,3.21948c-0.13712,0.10732 0,0.31002 0.13712,0.2504c2.57094,-1.25202 8.72976,-3.88722 11.50637,-1.71705c2.2967,1.7886 1.83965,5.69967 1.70253,7.08285c-0.01143,0.10732 0.12569,0.15501 0.1714,0.05962c0.73129,-1.37126 2.92516,-5.77121 -0.8227,-8.8953zm-1.8168,11.69743c-2.57094,1.25202 -8.72976,3.88722 -11.50637,1.71705c-2.2967,-1.7886 -1.83965,-5.69967 -1.70253,-7.08285c0.01143,-0.10732 -0.12569,-0.14309 -0.1714,-0.05962c-0.73129,1.37126 -2.92516,5.77121 0.8227,8.8953c4.36488,3.07639 10.22662,-1.28779 12.69472,-3.21948c0.13712,-0.10732 0,-0.31002 -0.14854,-0.2504l0.01143,0z"},this.pathMap.SERVICE_MQ_2={d:"m7.56012,10.65829l0,4.83454c0,0.3223 -0.05385,0.51124 -0.16154,0.57792c-0.09693,0.04446 -0.28001,0.08891 -0.56002,0.12225l0,0.45567l1.96007,0l0,-0.46678c-0.28001,-0.02223 -0.46309,-0.06668 -0.57079,-0.13337c-0.09693,-0.06668 -0.14,-0.25562 -0.14,-0.56681l0,-4.89011l1.69083,6.04596l0.37694,0l1.69083,-6.03485l0,4.86789c0,0.3223 -0.05385,0.52235 -0.16154,0.58904c-0.07539,0.04446 -0.26924,0.08891 -0.57079,0.12225l0,0.45567l2.12161,0l0,-0.46678c-0.31232,-0.03334 -0.50617,-0.06668 -0.59233,-0.13337c-0.09693,-0.06668 -0.14,-0.26673 -0.14,-0.56681l0,-4.83454c0,-0.3223 0.05385,-0.51124 0.17231,-0.58904c0.09693,-0.06668 0.29078,-0.11114 0.57079,-0.13337l0,-0.46678l-1.60467,0l-1.58313,5.6792l-1.5939,-5.6792l-1.65852,0l0,0.45567c0.33386,0.03334 0.52771,0.0778 0.6031,0.13337c0.09693,0.06668 0.14,0.26673 0.14,0.58904l0,0.02223l0.01077,0.01111zm10.98499,4.92346c-0.25847,0 -0.4954,-0.25562 -0.67848,-0.75574c0.71079,-0.73352 1.06619,-1.81157 1.06619,-3.22303c0,-1.15585 -0.2477,-2.10053 -0.75387,-2.84516c-0.44155,-0.65572 -0.9908,-0.97802 -1.64775,-0.97802s-1.2062,0.3223 -1.65852,0.97802c-0.4954,0.74463 -0.7431,1.68931 -0.7431,2.84516s0.2477,2.14498 0.7431,2.8785c0.44155,0.64461 0.9908,0.96691 1.64775,0.96691c0.32309,0 0.6031,-0.08891 0.8508,-0.25562c0.25847,0.68906 0.6031,1.03359 1.01234,1.03359c0.32309,0 0.6031,-0.23339 0.86157,-0.71129l-0.20462,-0.37787c-0.19385,0.27785 -0.3554,0.42233 -0.4954,0.42233l0,0l0,0.02223zm-1.54005,-0.74463c-0.14,0.06668 -0.28001,0.10003 -0.42001,0.10003c-0.40924,0 -0.61387,-0.25562 -0.61387,-0.74463c0,-0.20005 0.04308,-0.36676 0.14,-0.50013c0.08616,-0.12225 0.19385,-0.18894 0.30155,-0.18894c0.28001,0 0.54925,0.42233 0.80772,1.26698c0,-0.02223 -0.07539,0 -0.20462,0.06668l0,0l-0.01077,0zm0.66772,-0.60015c-0.15077,-0.4001 -0.28001,-0.70018 -0.38771,-0.88911c-0.22616,-0.36676 -0.4954,-0.54458 -0.79695,-0.54458c-0.28001,0 -0.50617,0.13337 -0.68925,0.4001c-0.16154,0.23339 -0.2477,0.51124 -0.2477,0.85577c0,0.21116 0.04308,0.4001 0.09693,0.56681c-0.52771,-0.57792 -0.79695,-1.57817 -0.79695,-3.00075c0,-0.9558 0.15077,-1.73377 0.44155,-2.3228c0.31232,-0.64461 0.72156,-0.96691 1.24927,-0.96691c0.40924,0 0.76464,0.21116 1.05542,0.64461c0.42001,0.60015 0.62464,1.48926 0.62464,2.65622s-0.18308,2.06718 -0.54925,2.61177l0,0l0,-0.01111z"},this.pathMap.SERVICE_SC_1={d:"m14.79685,19.26627l-5.42773,0c-2.11549,0 -3.71117,-1.00376 -4.73869,-2.93505c-0.24177,-0.45741 -0.36265,-0.97835 -0.49563,-1.47388c-0.09671,-0.35576 -0.14506,-0.73694 -0.13297,-1.0927c0.03627,-1.70258 0.65278,-3.12564 1.89789,-4.24375c0.70113,-0.62259 1.49897,-0.99106 2.38143,-1.19435c0.16924,-0.03812 0.3143,-0.20329 0.43519,-0.33035c0.58025,-0.648 1.12423,-1.35953 1.74074,-1.96941c0.55607,-0.54635 1.2572,-0.88941 1.97042,-1.19435c1.19676,-0.52094 2.42979,-0.55906 3.66281,-0.39388c1.31765,0.17788 2.52649,0.74965 3.49357,1.728c1.29347,1.15623 1.97042,2.46494 2.29681,3.29082c0.08462,0.15247 0.21759,0.31765 0.36265,0.39388c1.2572,0.62259 2.09131,1.62635 2.55067,3.01129c0.29012,0.88941 0.33848,1.79153 0.1088,2.66823c-0.35057,1.39764 -1.12423,2.50305 -2.38143,3.18917c-0.74949,0.40659 -1.53524,0.58447 -2.38143,0.57176c-1.7891,-0.02541 -3.55402,0 -5.34311,0l0,0l0,-0.02541zm-0.02418,-0.92753l5.52444,0c0.50772,0 0.99126,-0.08894 1.46271,-0.29223c1.80119,-0.76235 2.80453,-2.87152 2.24846,-4.82822c-0.35057,-1.23247 -1.10005,-2.13458 -2.24846,-2.63011c-0.27804,-0.11435 -0.51981,-0.30494 -0.61651,-0.60988c-0.27804,-0.97835 -0.83411,-1.76611 -1.48688,-2.50305c-0.95499,-1.10541 -2.11549,-1.82964 -3.49357,-2.10917c-1.55942,-0.31765 -3.0463,-0.05082 -4.42439,0.81317c-0.99126,0.62259 -1.74074,1.49929 -2.38143,2.47764c-0.25386,0.38118 -0.56816,0.55906 -0.99126,0.60988c-0.26595,0.03812 -0.54398,0.10165 -0.78575,0.216c-1.52315,0.72423 -2.42979,1.98211 -2.68365,3.6974c-0.15715,1.06729 0.08462,2.10917 0.65278,3.01129c0.89455,1.42306 2.15175,2.1727 3.79579,2.14729c1.80119,-0.01271 3.61446,0 5.42773,0l0.01209,0l-0.01209,0z"},this.pathMap.SERVICE_SC_2={d:"m17.77926,6.98091c0.13362,0.41985 0.2806,0.78179 0.34741,1.14374c0.25388,1.14374 0.46767,2.30195 0.36078,3.48912c-0.13362,1.40433 -0.60129,2.62046 -1.87069,3.21404c-0.44095,0.20269 -0.92198,0.36194 -1.38966,0.3909c-1.02888,0.05791 -2.05776,0.01448 -3.11337,-0.04343c0.24052,-0.10134 0.48104,-0.21716 0.72155,-0.28955c2.00431,-0.59358 3.36725,-1.99792 4.2625,-3.99584c0.1069,-0.24612 0.33405,-0.55015 0.12026,-0.92657c-0.09353,0.1303 -0.17371,0.23164 -0.24052,0.34746c-0.68147,1.28851 -1.6569,2.27299 -2.85949,2.95344c-0.60129,0.33299 -1.28276,0.5212 -1.9375,0.76732c-0.36078,0.1303 -0.74828,0.17373 -1.09569,0.30403c-0.92198,0.33299 -1.37629,-0.17373 -1.53664,-1.04239c-0.2806,-1.54911 0.36078,-2.73628 1.61681,-3.35882c0.52112,-0.2606 1.1625,-0.28955 1.75043,-0.3909c0.65474,-0.11582 1.32285,-0.11582 1.95086,-0.30403c1.09569,-0.31851 1.99095,-0.99896 2.68578,-1.96896c0.05345,-0.07239 0.12026,-0.14478 0.21379,-0.27508l0.01336,-0.01448zm-7.88363,8.80242c-0.20043,-0.01448 -0.3875,-0.1303 -0.33405,-0.34746c0.02672,-0.14478 0.21379,-0.31851 0.34741,-0.34746c0.21379,-0.05791 0.29397,0.14478 0.29397,0.37642s-0.09353,0.34746 -0.30733,0.33299l0,0l0,-0.01448z"},this.pathMap.SERVICE_REST_1={d:"m23.73344,12.53547c-0.0373,-0.43299 -0.41027,-0.75136 -0.82055,-0.71315l-0.90757,0.07641c-0.42271,0.0382 -0.88271,-0.26743 -1.04433,-0.66221l-0.63406,-1.26075c-0.22379,-0.35658 -0.19892,-0.91691 0.0746,-1.24802l0.59676,-0.71315c0.27352,-0.33111 0.23622,-0.82777 -0.09946,-1.0952l-1.16866,-1.00605c-0.32325,-0.28017 -0.79568,-0.24196 -1.0692,0.08914c0,0 0,0 0,0l-0.59676,0.71315c-0.27352,0.33111 -0.80811,0.45846 -1.19352,0.2929l-1.31785,-0.42025c-0.41027,-0.08914 -0.77082,-0.52213 -0.80811,-0.94238l-0.0746,-0.92965c-0.0373,-0.43299 -0.41027,-0.75136 -0.82055,-0.71315l-1.51677,0.12735c-0.42271,0.0382 -0.73352,0.40752 -0.69622,0.8405l0.0746,0.92965c0.0373,0.43299 -0.26108,0.90418 -0.64649,1.06973l-1.23082,0.64948c-0.34811,0.24196 -0.89514,0.20376 -1.21839,-0.07641l-0.69622,-0.59854c-0.32325,-0.28017 -0.79568,-0.24196 -1.0692,0.08914c0,0 0,0 0,0l-0.98217,1.19708c-0.27352,0.33111 -0.23622,0.81503 0.08703,1.0952l0.69622,0.61127c0.32325,0.28017 0.44757,0.82777 0.28595,1.22255l-0.41027,1.3499c-0.08703,0.42025 -0.50973,0.78956 -0.92001,0.82777l-0.90757,0.07641c-0.42271,0.0382 -0.73352,0.40752 -0.69622,0.8405l0.12433,1.55365c0.0373,0.43299 0.39784,0.75136 0.82055,0.71315l0.90757,-0.07641c0.42271,-0.0382 0.88271,0.26743 1.04433,0.66221l0.63406,1.26075c0.22379,0.35658 0.19892,0.91691 -0.0746,1.24802l-0.59676,0.71315c-0.27352,0.33111 -0.23622,0.81503 0.08703,1.0952l1.16866,1.00605c0.32325,0.28017 0.79568,0.24196 1.0692,-0.10188l0.59676,-0.71315c0.27352,-0.33111 0.80811,-0.45846 1.19352,-0.2929l1.31785,0.43299c0.41027,0.10188 0.77082,0.52213 0.80811,0.94238l0.0746,0.92965c0.0373,0.43299 0.39784,0.75136 0.82055,0.71315l1.51677,-0.12735c0.42271,-0.0382 0.73352,-0.42025 0.69622,-0.8405l-0.0746,-0.92965c-0.0373,-0.43299 0.26108,-0.90418 0.64649,-1.06973l1.23082,-0.64948c0.34811,-0.24196 0.89514,-0.20376 1.21839,0.07641l0.69622,0.61127c0.32325,0.28017 0.80811,0.24196 1.0692,-0.10188l0.98217,-1.19708c0.27352,-0.33111 0.23622,-0.82777 -0.09946,-1.0952l-0.69622,-0.61127c-0.32325,-0.28017 -0.44757,-0.82777 -0.28595,-1.22255l0.42271,-1.3499c0.09946,-0.42025 0.50973,-0.78956 0.92001,-0.82777l0.90757,-0.07641c0.42271,-0.0382 0.73352,-0.42025 0.69622,-0.8405l-0.12433,-1.56639l0,0l0.01243,0.01273zm-9.39898,6.6476c-2.72272,0.22923 -5.10977,-1.83382 -5.33355,-4.62276c-0.22379,-2.78894 1.79028,-5.23403 4.513,-5.46326s5.10977,1.83382 5.33355,4.62276c0.22379,2.78894 -1.79028,5.23403 -4.513,5.46326z"},this.pathMap.SERVICE_REST_2={d:"m10.47533,13.3295c0.15872,0 0.24691,-0.07245 0.24691,-0.21736l0,-0.6883l0.75835,0.85132s0.10582,0.05434 0.194,0.05434c0.14109,0 0.22927,-0.07245 0.24691,-0.21736c0,-0.05434 -0.01764,-0.10868 -0.07054,-0.12679l-0.56435,-0.57962c0.38799,-0.07245 0.59963,-0.2717 0.61726,-0.59773c0,-0.47094 -0.28218,-0.70641 -0.84653,-0.70641l-0.59963,0c-0.15872,0 -0.24691,0.07245 -0.24691,0.25358l0,1.75697c0,0.14491 0.08818,0.21736 0.24691,0.21736l0,0l0.01764,0zm0.24691,-1.7932l0.33509,0c0.194,0 0.29981,0.10868 0.31745,0.28981c0,0.16302 -0.10582,0.25358 -0.31745,0.2717l-0.33509,0l0,-0.56151zm2.83941,1.57584c0,-0.12679 -0.08818,-0.19924 -0.22927,-0.19924l-0.61726,0l0,-0.47094l0.54672,0c0.15872,0 0.22927,-0.07245 0.24691,-0.21736c-0.01764,-0.12679 -0.10582,-0.21736 -0.24691,-0.21736l-0.54672,0l0,-0.45283l0.59963,0c0.14109,0 0.22927,-0.07245 0.22927,-0.21736s-0.08818,-0.19924 -0.22927,-0.19924l-0.84653,0c-0.15872,0 -0.24691,0.09057 -0.24691,0.2717l0,1.73886c0,0.14491 0.08818,0.21736 0.24691,0.23547l0.86417,0c0.14109,0 0.22927,-0.07245 0.22927,-0.21736l0,-0.03623l0,-0.01811zm0.98762,-0.19924s-0.194,-0.01811 -0.33509,-0.07245c-0.07054,-0.01811 -0.15872,-0.03623 -0.22927,-0.03623c-0.14109,0 -0.21163,0.07245 -0.21163,0.21736c0,0.21736 0.28218,0.30792 0.81126,0.32604c0.54672,-0.01811 0.8289,-0.25358 0.86417,-0.70641c0,-0.32604 -0.24691,-0.56151 -0.75835,-0.70641c-0.24691,-0.07245 -0.37036,-0.14491 -0.37036,-0.23547c0,-0.12679 0.10582,-0.19924 0.28218,-0.19924c0.07054,0 0.15872,0 0.26454,0.03623c0.08818,0.01811 0.14109,0.03623 0.194,0.03623c0.14109,0 0.21163,-0.09057 0.22927,-0.23547c-0.01764,-0.18113 -0.24691,-0.28981 -0.67017,-0.30792c-0.51145,0.03623 -0.79362,0.2717 -0.8289,0.70641c0,0.28981 0.22927,0.47094 0.68781,0.59773c0.28218,0.07245 0.42327,0.16302 0.42327,0.2717c0,0.16302 -0.12345,0.25358 -0.33509,0.2717l0,0l-0.01764,0.03623zm2.04578,-1.39471l0.37036,0c0.14109,0 0.21163,-0.07245 0.22927,-0.21736c0,-0.12679 -0.08818,-0.19924 -0.22927,-0.19924l-1.25216,0c-0.12345,0 -0.194,0.07245 -0.194,0.19924c0,0.14491 0.07054,0.21736 0.194,0.21736l0.37036,0l0,1.57584c0,0.14491 0.08818,0.21736 0.24691,0.21736s0.24691,-0.07245 0.26454,-0.21736l0,-1.57584zm-4.62065,2.57207c-0.12345,-0.28981 -0.33509,-0.43472 -0.6349,-0.43472c-0.28218,0 -0.47617,0.16302 -0.59963,0.43472l-1.16398,2.8981l0,0.05434s-0.01764,0.10868 -0.01764,0.14491c0,0.23547 0.14109,0.32604 0.38799,0.32604c0.21163,0 0.35272,-0.07245 0.42327,-0.25358l0.17636,-0.50717l1.58725,0l0.15872,0.50717c0.07054,0.16302 0.21163,0.25358 0.42327,0.25358c0.24691,0 0.38799,-0.10868 0.38799,-0.32604c0,-0.05434 0,-0.12679 -0.03527,-0.19924l-1.11107,-2.8981l0.01764,0zm-1.16398,1.93811l0.54672,-1.53962l0.52908,1.53962s-1.0758,0 -1.0758,0zm4.03866,-2.30037l-1.02289,0c-0.26454,0 -0.40563,0.14491 -0.42327,0.4166l0,3.00678c0,0.25358 0.15872,0.38038 0.42327,0.38038s0.40563,-0.12679 0.42327,-0.38038l0,-0.86943l0.6349,0c0.89944,-0.05434 1.35798,-0.47094 1.42852,-1.26792c-0.05291,-0.79698 -0.54672,-1.21358 -1.44616,-1.26792l0,0l-0.01764,-0.01811zm-0.01764,1.82943l-0.58199,0l0,-1.12301l0.58199,0c0.37036,0 0.56435,0.19924 0.58199,0.56151c-0.03527,0.34415 -0.22927,0.52528 -0.58199,0.56151l0,0zm2.1516,-1.88377c-0.26454,0 -0.40563,0.14491 -0.42327,0.4166l0,3.04301c0,0.25358 0.15872,0.38038 0.42327,0.38038s0.40563,-0.12679 0.42327,-0.38038l0,-3.04301c0,-0.25358 -0.15872,-0.39849 -0.42327,-0.4166z"}}getStaticPath(t){var n;return((n=this.pathMap[t])==null?void 0:n.d)||""}}const a5={bpmnRenderer:["type",n5],pathMap:["type",o5]};function r5(o,t){return t={exports:{}},o(t,t.exports),t.exports}var i5=r5(function(o){var t=o.exports=function(n,a){if(a||(a=16),n===void 0&&(n=128),n<=0)return"0";for(var r=Math.log(Math.pow(2,n))/Math.log(a),i=2;r===1/0;i*=2)r=Math.log(Math.pow(2,n/i))/Math.log(a)*i;for(var s=r-Math.floor(r),l="",i=0;i<Math.floor(r);i++){var c=Math.floor(Math.random()*a).toString(a);l=c+l}if(s){var u=Math.pow(a,s),c=Math.floor(Math.random()*u).toString(a);l=c+l}var d=parseInt(l,a);return d!==1/0&&d>=Math.pow(2,n)?t(n,a):l};t.rack=function(n,a,r){var i=function(l){var c=0;do{if(c++>10)if(r)n+=r;else throw new Error("too many ID collisions, use more bits");var u=t(n,a)}while(Object.hasOwnProperty.call(s,u));return s[u]=l,u},s=i.hats={};return i.get=function(l){return i.hats[l]},i.set=function(l,c){return i.hats[l]=c,i},i.bits=n||128,i.base=a||16,i}});function T0(o){if(!(this instanceof T0))return new T0(o);o=o||[128,36,1],this._seed=o.length?i5.rack(o[0],o[1],o[2]):o}T0.prototype.next=function(o){return this._seed(o||!0)};T0.prototype.nextPrefixed=function(o,t){var n;do n=o+this.next(!0);while(this.assigned(n));return this.claim(n,t),n};T0.prototype.claim=function(o,t){this._seed.set(o,t||!0)};T0.prototype.assigned=function(o){return this._seed.get(o)||!1};T0.prototype.unclaim=function(o){delete this._seed.hats[o]};T0.prototype.clear=function(){var o=this._seed.hats,t;for(t in o)this.unclaim(t)};function Bu(o,t,n){const a=o.get("scopeIds",!1)||new T0([32,36]),r={},i={},s=new s5,l=new Set,c=[],u=new Set,d=new Set,p=new Map;function m(P){return!P.parent||P.parent===P?P:m(P.parent)}G("tick",function(){for(const P of l)F("elementChanged",{element:P});l.clear()});function f(P,M){if(c.push([M,P]),c.length!==1)return;let q;for(;q=c[0];){const[ee,re]=q;re.destroyed||ee(),c.shift()}F("tick")}function h(P){return i[P.type]||s}function y(P){const{element:M,parentScope:q,initiator:ee=null,scope:re=te({element:M,parent:q,initiator:ee})}=P;return f(re,function(){re.running||re.start(),B("signal",{...P,scope:re}),h(M).signal({...P,scope:re}),re.parent&&L(re.parent)}),re}function g(P){const{element:M,scope:q,initiator:ee=q}=P,re=te({element:M,parent:q,initiator:ee});return f(re,function(){if(re.running||re.start(),$e.is(M,"bpmn:SequenceFlow")){const se=m(re),ie=M.id;let Ee=p.get(se.id);S0(Ee)&&p.set(se.id,new Map),Ee=p.get(se.id);let Je=Ee.get(ie);if(S0(Je)&&(Je=1),Je>2)return;Je++,Ee.set(ie,Je)}B("enter",P),h(M).enter({...P,initiator:ee,scope:re}),re.parent&&L(re.parent)}),re}function C(P){const{element:M,scope:q,initiator:ee=q}=P;f(q,function(){B("exit",P),h(M).exit({...P,initiator:ee}),q.running&&q.complete(),I(q,ee),q.parent&&L(q.parent)})}function x(P){const{event:M,initiator:q,scope:ee}=P,re=w(M),se=ee.subscriptions,ie=jn.filterSet(se,ve=>g1.eventsMatch(re,ve.event)),Ee=ie.filter(ve=>!ve.event.interrupting),Je=ie.filter(ve=>ve.event.interrupting);if(!Je.length)return Ee.map(ve=>ve.triggerFn(q)).flat();const pt=Je.find(ve=>!ve.event.boundary)||Je[0],Rt=jn.filterSet(se,ve=>ve.event.persistent||l5(ve.event,pt.event));return se.forEach(ve=>{Rt.includes(ve)||ve.remove()}),[pt.triggerFn(q)].flat().filter(ve=>ve)}function D(P,M,q){M=w(M);const ee=M.element,re={scope:P,event:M,element:ee,triggerFn:q,remove(){_(re)}};return d.add(re),P.subscriptions.add(re),ee&&Z(ee),re}function _(P){const{scope:M,event:q}=P;d.delete(P),M.subscriptions.delete(P),q.element&&Z(q.element)}function T(P){return $e.is(P,"bpmn:StartEvent")||$e.is(P,"bpmn:IntermediateCatchEvent")||$e.is(P,"bpmn:ReceiveTask")||u5(P)?$e.getBusinessObject(P).name||P.id:null}function E(P){return{element:P,interrupting:!1,boundary:!1,iref:P.id,type:"none"}}function w(P){if(!P.businessObject)return P;const M=$e.isInterrupting(P),q=$e.isBoundaryEvent(P),ee=T(P),re={element:P,interrupting:M,boundary:q,...ee?{iref:ee}:{}},se=Pu(P)[0];if(!se)return{...re,type:c5(P)?"message":"none"};if($e.is(se,"bpmn:LinkEventDefinition"))return{...re,type:"link",name:se.name};if($e.is(se,"bpmn:SignalEventDefinition"))return{...re,type:"signal",ref:se.signalRef};if($e.is(se,"bpmn:TimerEventDefinition"))return{...re,type:"timer"};if($e.is(se,"bpmn:ConditionalEventDefinition"))return{...re,type:"condition"};if($e.is(se,"bpmn:EscalationEventDefinition"))return{...re,type:"escalation",ref:se.escalationRef};if($e.is(se,"bpmn:CancelEventDefinition"))return{...re,type:"cancel"};if($e.is(se,"bpmn:ErrorEventDefinition"))return{...re,type:"error",ref:se.errorRef};if($e.is(se,"bpmn:MessageEventDefinition"))return{...re,type:"message",ref:se.messageRef};if($e.is(se,"bpmn:CompensateEventDefinition")){let ie=se.activityRef&&n.get(se.activityRef.id);return ie||($e.isStartEvent(P)&&$e.isEventSubProcess(P.parent)?ie=P.parent.parent:$e.isBoundaryEvent(P)?ie=P.host:ie=P.parent),{...re,type:"compensate",ref:ie,persistent:!0}}throw new Error("unknown event definition",se)}function b(P,M=!0){const{element:q,parent:ee,initiator:re}=P;M&&B("createScope",{element:q,scope:ee});const se=new g4(a.next(),q,ee,re);return ee&&ee.children.push(se),u.add(se),M&&F("createScope",{scope:se}),Z(q),ee&&Z(ee.element),se}function S(P){if(typeof P=="function")return P;const{event:M,element:q,scope:ee}=P,re=P.elements||q&&[q],se=M&&w(M);return ie=>(!se||g1.eventsMatch(se,ie.event))&&(!re||re.includes(ie.element))&&(!ee||ee===ie.scope)}function k(P){const M=P==="function"?P:S(P);return q=>Array.from(q.subscriptions).some(M)}function N(P){if(typeof P=="function")return P;const{element:M,waitsOnElement:q,parent:ee,trait:re=v1.ScopeTraits.RUNNING,subscribedTo:se}=P,ie=se?k(se):()=>!0;return Ee=>(!M||Ee.element===M)&&(!ee||Ee.parent===ee)&&(!q||Ee.getTokensByElement(q)>0)&&Ee.hasTrait(re)&&ie(Ee)}function A(P){return jn.filterSet(d,S(P))}function O(P){return jn.findSet(d,S(P))}function $(P){return jn.filterSet(u,N(P))}function V(P){return jn.findSet(u,N(P))}function I(P,M=null){if(!P.destroyed){P.destroy(M);for(const q of P.subscriptions){const ee=q.event.traits||v1.ScopeTraits.ACTIVE;P.hasTrait(ee)||_(q)}if(P.destroyed){for(const q of P.children)q.destroyed||I(q,M);B("destroyScope",{element:P.element,scope:P}),u.delete(P),F("destroyScope",{scope:P})}Z(P.element),P.parent&&Z(P.parent.element)}}function B(P,M){F("trace",{...M,action:P})}function Z(P){l.add(P),c.length||F("tick")}function L(P){F("scopeChanged",{scope:P})}function F(P,M={}){return t.fire(`tokenSimulation.simulator.${P}`,M)}function G(P,M){t.on("tokenSimulation.simulator."+P,M)}function ae(P,M){t.off("tokenSimulation.simulator."+P,M)}function le(P,M){const q=Q(P);r[P.id||P]={...q,...M},Z(P)}function U(){const P=[];return n.forEach(M=>{if(!$e.isAny(M,["bpmn:Process","bpmn:Participant"]))return;const q=b({element:M},!1);P.push(q);const ee=M.children.filter($e.isStartEvent),re=M.children.filter($e.isImplicitStartEvent);for(const se of ee){const ie={...w(se),interrupting:!1};D(q,ie,Ee=>y({element:M,startEvent:se,initiator:Ee}))}if(!ee.length)for(const se of re){const ie=E(se);D(q,ie,Ee=>y({element:M,initiator:Ee}))}}),P}function te(P){const{element:M}=P,q=b(P),{children:ee=[],attachers:re=[]}=M;for(const se of ee)if($e.isEventSubProcess(se)){const ie=se.children.filter(Ee=>$e.isStartEvent(Ee)&&!$e.isCompensationEvent(Ee));for(const Ee of ie)D(q,Ee,Je=>y({element:se,parentScope:q,startEvent:Ee,initiator:Je}))}for(const se of re)$e.isBoundaryEvent(se)&&!$e.isCompensationEvent(se)&&D(q,se,ie=>y({element:se,parentScope:q.parent,hostScope:q,initiator:ie}));return q}function Q(P){return r[P.id||P]||{}}function J(P,M){if(!M.length)return;const q={type:"all-completed",persistent:!1},ee=new Set(M),re=se=>{ee.delete(se.scope),ee.size===0&&(ae("destroyScope",re),x({scope:P,event:q}))};return G("destroyScope",re),q}function ne(P,M=!0){le(P,{wait:M})}function ye(){for(const P of u)I(P);for(const P of U())u.add(P);p.clear(),F("tick"),F("reset")}this.createScope=b,this.destroyScope=I,this.findScope=V,this.findScopes=$,this.findSubscription=O,this.findSubscriptions=A,this.waitAtElement=ne,this.waitForScopes=J,this.setConfig=le,this.getConfig=Q,this.signal=y,this.enter=g,this.exit=C,this.subscribe=D,this.trigger=x,this.reset=ye,this.on=G,this.off=ae,this.registerBehavior=function(P,M){i[P]=M}}Bu.$inject=["injector","eventBus","elementRegistry"];function s5(){this.signal=function(o){console.log("ignored #exit",o.element)},this.exit=function(o){console.log("ignored #exit",o.element)},this.enter=function(o){console.log("ignored #enter",o.element)}}function l5(o,t){return o.type===t.type&&o.boundary&&!t.boundary}function c5(o){return $e.is(o,"bpmn:ReceiveTask")||o.incoming.some(t=>$e.is(t,"bpmn:MessageFlow"))}function u5(o){if(!$e.isBoundaryEvent(o))return!1;const t=Pu(o);return!t[0]||$e.isAny(t[0],["bpmn:ConditionalEventDefinition","bpmn:TimerEventDefinition"])}function Pu(o){return o.businessObject.get("eventDefinitions")||[]}const d5=5e3,p5={__depends__:[b4],__init__:[["eventBus","simulator",function(o,t){o.on(["tokenSimulation.toggleMode","tokenSimulation.resetSimulation"],d5,n=>{t.reset()})}]],simulator:["type",Bu]};var J0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function al(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}const Xe={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:[0,"",""]};Xe.td=Xe.th=[3,"<table><tbody><tr>","</tr></tbody></table>"];Xe.option=Xe.optgroup=[1,'<select multiple="multiple">',"</select>"];Xe.thead=Xe.tbody=Xe.colgroup=Xe.caption=Xe.tfoot=[1,"<table>","</table>"];Xe.polyline=Xe.ellipse=Xe.polygon=Xe.circle=Xe.text=Xe.line=Xe.path=Xe.rect=Xe.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];function m5(o,t=globalThis.document){var u;if(typeof o!="string")throw new TypeError("String expected");const n=/^<!--(.*?)-->$/s.exec(o);if(n)return t.createComment(n[1]);const a=(u=/<([\w:]+)/.exec(o))==null?void 0:u[1];if(!a)return t.createTextNode(o);if(o=o.trim(),a==="body"){const d=t.createElement("html");d.innerHTML=o;const{lastChild:p}=d;return p.remove(),p}let[r,i,s]=Object.hasOwn(Xe,a)?Xe[a]:Xe._default,l=t.createElement("div");for(l.innerHTML=i+o+s;r--;)l=l.lastChild;if(l.firstChild===l.lastChild){const{firstChild:d}=l;return d.remove(),d}const c=t.createDocumentFragment();return c.append(...l.childNodes),c}var f5=m5;const L0=al(f5);function h5(o,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(a){if(a!=="default"&&!(a in o)){var r=Object.getOwnPropertyDescriptor(n,a);Object.defineProperty(o,a,r.get?r:{enumerable:!0,get:function(){return n[a]}})}})}),Object.freeze(o)}const v5=Object.prototype.toString;function wt(o){return new nn(o)}function nn(o){if(!o||!o.nodeType)throw new Error("A DOM element reference is required");this.el=o,this.list=o.classList}nn.prototype.add=function(o){return this.list.add(o),this};nn.prototype.remove=function(o){return v5.call(o)=="[object RegExp]"?this.removeMatching(o):(this.list.remove(o),this)};nn.prototype.removeMatching=function(o){const t=this.array();for(let n=0;n<t.length;n++)o.test(t[n])&&this.remove(t[n]);return this};nn.prototype.toggle=function(o,t){return typeof t<"u"?t!==this.list.toggle(o,t)&&this.list.toggle(o):this.list.toggle(o),this};nn.prototype.array=function(){return Array.from(this.list)};nn.prototype.has=nn.prototype.contains=function(o){return this.list.contains(o)};function g5(o,t,n){var a=n?o:o.parentNode;return a&&typeof a.closest=="function"&&a.closest(t)||null}var Ka={},Wa,us,rl;function Mu(){Wa=window.addEventListener?"addEventListener":"attachEvent",us=window.removeEventListener?"removeEventListener":"detachEvent",rl=Wa!=="addEventListener"?"on":""}var b5=Ka.bind=function(o,t,n,a){return Wa||Mu(),o[Wa](rl+t,n,a||!1),n},y5=Ka.unbind=function(o,t,n,a){return us||Mu(),o[us](rl+t,n,a||!1),n},X0=h5({__proto__:null,bind:b5,default:Ka,unbind:y5},[Ka]),Fu=["focus","blur"];function E5(o,t,n,a,r){return Fu.indexOf(n)!==-1&&(r=!0),X0.bind(o,n,function(i){var s=i.target||i.srcElement;i.delegateTarget=g5(s,t,!0),i.delegateTarget&&a.call(o,i)},r)}function w5(o,t,n,a){return Fu.indexOf(t)!==-1&&(a=!0),X0.unbind(o,t,n,a)}var C5={bind:E5,unbind:w5};function Na(o,t){return t=t||document,t.querySelector(o)}function _5(o,t){return t=t||document,t.querySelectorAll(o)}const N5='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M12.83 352h262.34A12.82 12.82 0 0 0 288 339.17v-38.34A12.82 12.82 0 0 0 275.17 288H12.83A12.82 12.82 0 0 0 0 300.83v38.34A12.82 12.82 0 0 0 12.83 352zm0-256h262.34A12.82 12.82 0 0 0 288 83.17V44.83A12.82 12.82 0 0 0 275.17 32H12.83A12.82 12.82 0 0 0 0 44.83v38.34A12.82 12.82 0 0 0 12.83 96zM432 160H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16zm0 256H16a16 16 0 0 0-16 16v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z"/></svg>',S5='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"/></svg>',T5='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path fill="currentColor" d="M20 424.229h20V279.771H20c-11.046 0-20-8.954-20-20V212c0-11.046 8.954-20 20-20h112c11.046 0 20 8.954 20 20v212.229h20c11.046 0 20 8.954 20 20V492c0 11.046-8.954 20-20 20H20c-11.046 0-20-8.954-20-20v-47.771c0-11.046 8.954-20 20-20zM96 0C56.235 0 24 32.235 24 72s32.235 72 72 72 72-32.235 72-72S135.764 0 96 0z"/></svg>',k5='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"/></svg>',x5='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"/></svg>',V5='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M440.65 12.57l4 82.77A247.16 247.16 0 0 0 255.83 8C134.73 8 33.91 94.92 12.29 209.82A12 12 0 0 0 24.09 224h49.05a12 12 0 0 0 11.67-9.26 175.91 175.91 0 0 1 317-56.94l-101.46-4.86a12 12 0 0 0-12.57 12v47.41a12 12 0 0 0 12 12H500a12 12 0 0 0 12-12V12a12 12 0 0 0-12-12h-47.37a12 12 0 0 0-11.98 12.57zM255.83 432a175.61 175.61 0 0 1-146-77.8l101.8 4.87a12 12 0 0 0 12.57-12v-47.4a12 12 0 0 0-12-12H12a12 12 0 0 0-12 12V500a12 12 0 0 0 12 12h47.35a12 12 0 0 0 12-12.6l-4.15-82.57A247.17 247.17 0 0 0 255.83 504c121.11 0 221.93-86.92 243.55-201.82a12 12 0 0 0-11.8-14.18h-49.05a12 12 0 0 0-11.67 9.26A175.86 175.86 0 0 1 255.83 432z"/></svg>',A5='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"/></svg>',D5='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 352 512"><path fill="currentColor" d="M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"/></svg>',R5='<svg viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="currentColor" class="arco-icon arco-icon-empty" stroke-width="4" stroke-linecap="butt" stroke-linejoin="miter"><path d="M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"></path></svg>';function F0(o){return function(n=""){return`<span class="bts-icon ${n}">${o}</span>`}}const _1=F0(N5),I5=F0(R5),N1=F0(S5),ju=F0(T5),O5=F0(k5),$5=F0(x5),L5=F0(V5),B5=F0(A5),S1=F0(D5),P5=$5(),M5=O5(),T1=1500;class il{constructor(t,n,a,r,i){H(this,"_eventBus");H(this,"_tokenSimulationPalette");H(this,"_notifications");H(this,"_translate");H(this,"canvasParent");H(this,"_paletteEntry");H(this,"isActive");H(this,"isPaused");H(this,"playMarkup");H(this,"pauseMarkup");this._eventBus=t,this._tokenSimulationPalette=n,this._notifications=a,this._translate=i,this.canvasParent=r.getContainer().parentNode,this.isActive=!1,this.isPaused=!0,this.playMarkup=()=>`${P5}<span>${i("Play Simulation")}</span>`,this.pauseMarkup=()=>`${M5}<span>${i("Pause Simulation")}</span>`,this._init(),t.on(Qe.SCOPE_CREATE_EVENT,T1,l=>{this.activate(),this.unpause()}),t.on([Qe.RESET_SIMULATION_EVENT,Qe.TOGGLE_MODE_EVENT],()=>{this.deactivate(),this.pause()}),t.on(Qe.TRACE_EVENT,T1,l=>{this.unpause()});const s=this;t.on("i18n.changed",function(){s._updateEntry()})}_init(){const t=this._translate("Play/Pause Simulation");this._paletteEntry=L0(`<div class="bts-entry disabled" title="${t}">${this.playMarkup()}</div>`),X0.bind(this._paletteEntry,"click",this.toggle.bind(this)),this._tokenSimulationPalette.addEntry(this._paletteEntry,1)}_updateEntry(){this._paletteEntry&&(this._paletteEntry.innerHTML=this.isPaused?this.playMarkup():this.pauseMarkup())}pause(){this.isActive&&(wt(this._paletteEntry).remove("active"),wt(this.canvasParent).add("paused"),this._paletteEntry.innerHTML=this.playMarkup(),this._eventBus.fire(Qe.PAUSE_SIMULATION_EVENT),this._notifications.showNotification({text:"Pause Simulation"}),this.isPaused=!0)}unpause(){!this.isActive||!this.isPaused||(wt(this._paletteEntry).add("active"),wt(this.canvasParent).remove("paused"),this._paletteEntry.innerHTML=this.pauseMarkup(),this._eventBus.fire(Qe.PLAY_SIMULATION_EVENT),this._notifications.showNotification({text:"Play Simulation"}),this.isPaused=!1)}toggle(){this.isPaused?this.unpause():this.pause()}activate(){this.isActive=!0,wt(this._paletteEntry).remove("disabled")}deactivate(){this.isActive=!1,wt(this._paletteEntry).remove("active"),wt(this._paletteEntry).add("disabled")}}H(il,"$inject");il.$inject=["eventBus","tokenSimulationPalette","notifications","canvas","translate"];const F5=2e3,j5=ju();class sl{constructor(t,n,a,r){H(this,"_eventBus");H(this,"_canvas");H(this,"_scopeFilter");H(this,"_translate");H(this,"container");this._eventBus=t,this._canvas=n,this._scopeFilter=a,this._translate=r,this._init(),t.on([Qe.TOGGLE_MODE_EVENT,Qe.RESET_SIMULATION_EVENT],i=>{this.clear()})}_init(){this.container=L0('<div class="bts-notifications"></div>'),this._canvas.getContainer().appendChild(this.container)}clear(){for(;this.container.children.length;)this.container.children[0].remove()}showNotification(t){const n=this._translate,{text:a,type:r="info",icon:i=j5,scope:s,ttl:l=F5}=t;if(s&&!this._scopeFilter.isShown(s))return;const c=i.startsWith("<")?i:`<i class="${i}"></i>`,u=s&&s.colors,d=u?`style="color: ${u.auxiliary}; background: ${u.primary}"`:"",p=n(a),m=L0(`
    <div class="bts-notification ${r}">
      <span class="bts-icon">${c}</span>
      <span class="bts-text" title="${p}">${p}</span>
      ${s?`<span class="bts-scope" ${d}>${s.id}</span>`:""}
    </div>
  `);for(this.container.appendChild(m);this.container.children.length>4;)this.container.children[0].remove();setTimeout(function(){m.remove()},l)}}H(sl,"$inject");sl.$inject=["eventBus","canvas","scopeFilter","translate"];const cr={__depends__:[Ru],notifications:["type",sl]},q5={__depends__:[cr],__init__:["pauseSimulation"],pauseSimulation:["type",il]};class ll{constructor(t,n,a,r){H(this,"_eventBus");H(this,"_tokenSimulationPalette");H(this,"_notifications");H(this,"_translate");H(this,"_paletteEntry");H(this,"_active");this._eventBus=t,this._tokenSimulationPalette=n,this._notifications=a,this._translate=r,this._init(),t.on(Qe.SCOPE_CREATE_EVENT,()=>{wt(this._paletteEntry).remove("disabled")}),t.on(Qe.TOGGLE_MODE_EVENT,s=>{this._active=s.active,this._active||this.resetSimulation()});const i=this;t.on("i18n.changed",function(){i._updateEntry()})}_updateEntry(){const t=this._translate("Reset Simulation");if(this._paletteEntry){const n=this._paletteEntry.querySelector(".bts-entry .bts-entry-text");n&&(n.innerHTML=t)}}_init(){const t=this._translate("Reset Simulation");this._paletteEntry=L0(`
    <div class="bts-entry disabled" title="${t}">
      ${L5()}
      <span class="bts-entry-text">${t}</span>
    </div>
  `),X0.bind(this._paletteEntry,"click",()=>{this.resetSimulation(),this._notifications.showNotification({text:"Reset Simulation",type:"info"})}),this._tokenSimulationPalette.addEntry(this._paletteEntry,2)}resetSimulation(){wt(this._paletteEntry).add("disabled"),this._eventBus.fire(Qe.RESET_SIMULATION_EVENT)}}H(ll,"$inject");ll.$inject=["eventBus","tokenSimulationPalette","notifications","translate"];const U5={__depends__:[cr],__init__:["resetSimulation"],resetSimulation:["type",ll]};var rs;let qu=(rs=class{constructor(t,n,a){H(this,"_elementRegistry");H(this,"_elementColors");this._elementRegistry=n,this._elementColors=a}_setNeutralColors(){}},H(rs,"$inject"),rs);qu.$inject=["eventBus","elementRegistry","elementColors"];const H5={__depends__:[y4],__init__:["neutralElementColors"],neutralElementColors:["type",qu]},Z5=-15,z5=15;class cl{constructor(t,n,a){H(this,"_overlays");H(this,"_translate");this._overlays=t,this._translate=a,n.on([Qe.RESET_SIMULATION_EVENT,Qe.SCOPE_CREATE_EVENT,Qe.TOGGLE_MODE_EVENT],()=>{this.clear()})}addElementNotification(t,n){const a={top:Z5,right:z5},{type:r,icon:i,text:s,scope:l={}}=n,c=l.colors,u=c?`style="color: ${c.auxiliary}; background: ${c.primary}"`:"",d=this._translate(s),p=L0(`
    <div class="bts-element-notification ${r||""}" ${u}>
      ${i||""}
      <span class="bts-text">${d}</span>
    </div>
  `);this._overlays.add(t,"bts-element-notification",{position:a,html:p,show:{minZoom:.5}})}removeElementNotification(t){this._overlays.remove({element:t})}clear(){this._overlays.remove({type:"bts-element-notification"})}}H(cl,"$inject");cl.$inject=["overlays","eventBus","translate"];const G5={elementNotifications:["type",cl]},K5={__depends__:[G5,cr],__init__:["elementSupport"],elementSupport:["type",E4]},W5={copy:"fbpmn-icon-copy-service-task",sc:"fbpmn-icon-sc-service-task",dmn:"fbpmn-icon-dmn-service-task",mq:"fbpmn-icon-mq-service-task",rest:"fbpmn-icon-rest-service-task",http:"fbpmn-icon-http-service-task",mail:"fbpmn-icon-mail-service-task",camel:"fbpmn-icon-camel-service-task",shell:"ibpmn-icon-shell-service-task"},Y5={copy:"Copy Service Task",sc:"Sc Service Task",dmn:"Dmn Service Task",mq:"Mq Service Task",rest:"Rest Service Task",http:"Http Service Task",mail:"Mail Service Task",camel:"Camel Service Task",shell:"Shell Service Task"},J5=ju(),X5=I5("a-lager-icon");function Ri(o){const t=o&&o.businessObject.name;return t&&w4.escapeHTML(t)}function Ii(o,t){const n=ds(o);return n==="none"?"bpmn-icon-intermediate-event-none":`bpmn-icon-intermediate-event-${t}-${n}`}function ds(o){const t=z.getBusinessObject(o);if(ge(t,"VariableListenerEventDefinition").length)return"multiple";if(t.get("eventDefinitions").length===0)return"none";const a=t.eventDefinitions[0];return z.is(a,"bpmn:MessageEventDefinition")?"message":z.is(a,"bpmn:TimerEventDefinition")?"timer":z.is(a,"bpmn:SignalEventDefinition")?"signal":z.is(a,"bpmn:ErrorEventDefinition")?"error":z.is(a,"bpmn:EscalationEventDefinition")?"escalation":z.is(a,"bpmn:CompensateEventDefinition")?"compensation":z.is(a,"bpmn:ConditionalEventDefinition")?"condition":z.is(a,"bpmn:LinkEventDefinition")?"link":z.is(a,"bpmn:CancelEventDefinition")?"cancel":z.is(a,"bpmn:TerminateEventDefinition")?"terminate":"none"}class ul{constructor(t,n,a,r,i,s,l){H(this,"_notifications");H(this,"_tokenSimulationPalette");H(this,"_canvas");H(this,"_scopeFilter");H(this,"_translate");H(this,"_container");H(this,"_placeholder");H(this,"_content");H(this,"_close");H(this,"_icon");H(this,"_emptyMarkup");H(this,"_emptyMarkupInner");H(this,"_showMarkup");H(this,"_hideMarkup");H(this,"_paletteEntry");this._notifications=n,this._tokenSimulationPalette=a,this._canvas=r,this._scopeFilter=i,this._translate=l,this._emptyMarkupInner=()=>`${X5}<span>${l("No Entries")}</span>`,this._emptyMarkup=()=>`<p class="bts-entry placeholder">${this._emptyMarkupInner()}</span></p>`,this._showMarkup=()=>`${_1()}<span>${l("Show Simulation Log")}</span>`,this._hideMarkup=()=>`${_1()}<span>${l("Hide Simulation Log")}</span>`,this._init(),t.on(Qe.SCOPE_FILTER_CHANGED_EVENT,u=>{_5(".bts-entry[data-scope-id]",this._container).forEach(p=>{const m=p.dataset.scopeId;wt(p).toggle("inactive",!this._scopeFilter.isShown(m))})}),t.on(Qe.SCOPE_DESTROYED_EVENT,u=>{const{scope:d}=u,{element:p}=d,m=d.completed;if(!["bpmn:Process","bpmn:Participant","bpmn:SubProcess"].includes(p.type))return;const y=`${z.is(p,"bpmn:SubProcess")?Ri(p)||"SubProcess":"Process"} ${m?"finished":"canceled"}`;this.log({text:y,icon:m?N1():B5(),scope:d})}),t.on(Qe.SCOPE_CREATE_EVENT,u=>{const{scope:d}=u,{element:p}=d;if(!["bpmn:Process","bpmn:Participant","bpmn:SubProcess"].includes(p.type))return;const h=`${z.is(p,"bpmn:SubProcess")?Ri(p)||"SubProcess":"Process"} started`;this.log({text:h,icon:N1(),scope:d})}),t.on(Qe.TRACE_EVENT,u=>{const{action:d,scope:p,element:m}=u;if(d!=="exit")return;const f=p.parent,h=Ri(m);if(z.is(m,"bpmn:ServiceTask")){const y=m.businessObject.type;return this.log({text:h||y&&Y5[y]||"Service task",icon:y&&W5[y]||"bpmn-icon-service",scope:f})}if(z.is(m,"bpmn:UserTask"))return this.log({text:h||"User task",icon:"bpmn-icon-user",scope:f});if(z.is(m,"bpmn:CallActivity"))return this.log({text:h||"Call Activity",icon:"bpmn-icon-call-activity",scope:f});if(z.is(m,"bpmn:ScriptTask"))return this.log({text:h||"Script task",icon:"bpmn-icon-script",scope:f});if(z.is(m,"bpmn:BusinessRuleTask"))return this.log({text:h||"Business Rule task",icon:"bpmn-icon-business-rule",scope:f});if(z.is(m,"bpmn:ManualTask"))return this.log({text:h||"Manual task",icon:"bpmn-icon-manual-task",scope:f});if(z.is(m,"bpmn:ReceiveTask"))return this.log({text:h||"Receive task",icon:"bpmn-icon-receive",scope:f});if(z.is(m,"bpmn:SendTask"))return this.log({text:h||"Send task",icon:"bpmn-icon-send",scope:f});if(z.is(m,"bpmn:Task"))return this.log({text:h||"Task",icon:"bpmn-icon-task",scope:f});if(z.is(m,"bpmn:ExclusiveGateway"))return this.log({text:h||"Exclusive gateway",icon:"bpmn-icon-gateway-xor",scope:f});if(z.is(m,"bpmn:ParallelGateway"))return this.log({text:h||"Parallel gateway",icon:"bpmn-icon-gateway-parallel",scope:f});if(z.is(m,"bpmn:InclusiveGateway"))return this.log({text:h||"Inclusive gateway",icon:"bpmn-icon-gateway-or",scope:f});if(z.is(m,"bpmn:StartEvent"))return this.log({text:h||"Start event",icon:`bpmn-icon-start-event-${ds(m)}`,scope:f});if(z.is(m,"bpmn:IntermediateCatchEvent"))return this.log({text:h||"Intermediate event",icon:Ii(m,"catch"),scope:f});if(z.is(m,"bpmn:IntermediateThrowEvent"))return this.log({text:h||"Intermediate event",icon:Ii(m,"throw"),scope:f});if(z.is(m,"bpmn:BoundaryEvent"))return this.log({text:h||"Boundary event",icon:Ii(m,"catch"),scope:f});if(z.is(m,"bpmn:EndEvent"))return this.log({text:h||"End event",icon:`bpmn-icon-end-event-${ds(m)}`,scope:f})}),t.on(Qe.RESET_SIMULATION_EVENT,()=>{this.clear(),this.toggle(!0)}),t.on(Qe.TOGGLE_MODE_EVENT,({active:u})=>{this.clear(),this.toggle(u)});const c=this;t.on("i18n.changed",function(){c._updateEntry()})}_updateEntry(){const t=this.isShown();this._paletteEntry&&(this._paletteEntry.innerHTML=t?this._hideMarkup():this._showMarkup()),t&&this._updateContent()}_updateContent(){const t=this._translate,n=`${t("Simulation Log")}
        <button class="bts-close" aria-label="Close">
          ${S1()}
        </button>`,a=this._container.querySelector(".bts-log .bts-header");a&&(a.innerHTML=n,this._close=Na(".bts-close",this._container),X0.bind(this._close,"click",()=>{this.toggle(!1)})),this._placeholder&&(this._placeholder.innerHTML=this._emptyMarkupInner())}_init(){const t=this._translate;this._container=L0(`
    <div class="bts-log djs-scrollable hidden">
      <div class="bts-header">
        ${t("Simulation Log")}
        <button class="bts-close" aria-label="Close">
          ${S1()}
        </button>
      </div>
      <div class="bts-content">
        ${this._emptyMarkup}
      </div>
    </div>
  `),this._placeholder=Na(".bts-placeholder",this._container),this._content=Na(".bts-content",this._container),X0.bind(this._content,"mousedown",a=>{a.stopPropagation()}),this._close=Na(".bts-close",this._container),X0.bind(this._close,"click",()=>{this.toggle(!1)}),this._canvas.getContainer().appendChild(this._container);const n=t("Toggle Simulation Log");this._paletteEntry=L0(`
    <div class="bts-entry" title="${n}">${this._showMarkup}</div>
  `),X0.bind(this._paletteEntry,"click",()=>{this.toggle()}),this._tokenSimulationPalette.addEntry(this._paletteEntry,3)}log(t){const n=this._translate,{text:a,type:r="info",icon:i=J5,scope:s}=t,l=this._content;this._placeholder&&wt(this._placeholder).add("hidden"),this.isShown()||this._notifications.showNotification(t);const c=i.startsWith("<")?i:`<i class="${i}"></i>`,u=s&&s.colors,d=u?`style="background: ${u.primary}; color: ${u.auxiliary}"`:"",p=n(a),m=L0(`
    <p class="bts-entry ${r} ${s&&this._scopeFilter.isShown(s)?"":"inactive"}" ${s?`data-scope-id="${s.id}"`:""}>
      <span class="bts-icon">${c}</span>
      <span class="bts-text" title="${p}">${p}</span>
      ${s?`<span class="bts-scope" data-scope-id="${s.id}" ${d}>${s.id}</span>`:""}
    </p>
  `);C5.bind(m,".bts-scope[data-scope-id]","click",h=>{this._scopeFilter.toggle(s)});const f=Math.abs(l.clientHeight+l.scrollTop-l.scrollHeight)<2;l.appendChild(m),f&&(l.scrollTop=l.scrollHeight)}isShown(){const t=this._container;return!wt(t).has("hidden")}toggle(t=!this.isShown()){const n=this._container;t?(wt(n).remove("hidden"),this._paletteEntry.innerHTML=this._hideMarkup()):(wt(n).add("hidden"),this._paletteEntry.innerHTML=this._showMarkup()),this._updateContent()}clear(){if(this._content){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._placeholder=L0(this._emptyMarkup()),this._content.appendChild(this._placeholder)}}}H(ul,"$inject");ul.$inject=["eventBus","notifications","tokenSimulationPalette","canvas","scopeFilter","simulator","translate"];const Q5={__depends__:[cr,Ru],__init__:["log"],log:["type",ul]},ep={__depends__:[l4,c4,u4,d4,p4,K5,q5,U5,m4,f4,H5,h4,v4,p5,Q5]};class dl{constructor(t,n,a,r){H(this,"_active");H(this,"_eventBus");H(this,"_canvas");H(this,"_selection");H(this,"_contextPad");H(this,"_canvasParent");this._eventBus=t,this._canvas=n,this._selection=a,this._contextPad=r,this._active=!1,t.on("import.parse.start",()=>{this._active&&(this.toggleMode(!1),t.once("import.done",()=>{this.toggleMode(!0)}))}),t.on("diagram.init",()=>{this._canvasParent=this._canvas.getContainer().parentNode})}toggleMode(t=!this._active){if(t!==this._active){if(t)wt(this._canvasParent).add("simulation");else if(wt(this._canvasParent).remove("simulation"),this._contextPad&&this._selection){const n=this._selection.get();n.length===1&&this._contextPad.open(n[0])}this._eventBus.fire(Qe.TOGGLE_MODE_EVENT,{active:t}),this._active=t}}}H(dl,"$inject");dl.$inject=["eventBus","canvas","selection","contextPad"];const tp={__init__:["toggleMode"],toggleMode:["type",dl]},np={__depends__:[ep,C4,tp,_4,N4]},op={"Copy Service Task":"抄送任务","Camel Service Task":"骆驼任务","Sc Service Task":"微服务任务","Rest Service Task":"Rest 任务","Dmn Service Task":"决策任务","Http Service Task":"Http 任务","Mq Service Task":"消息任务","Mail Service Task":"邮件任务","Shell Service Task":"Shell 任务","Call activity":"调用活动","Sub-process":"子流程","Event sub-process":"事件子流程","Sub-process (collapsed)":"子流程(折叠)","Sub-process (expanded)":"子流程(展开)","Ad-hoc":"临时子流程","Create expanded sub-process":"创建子流程(折叠)","Horizontal expanded pool/participant":"水平泳道(展开)","Vertical expanded pool/participant":"垂直泳道(展开)","Variable start event":"参数开始事件","Variable start event (non-interrupting)":"参数开始事件(非中断)","Variable boundary event":"参数边界事件","Variable boundary event (non-interrupting)":"参数边界事件(非中断)","Variable intermediate catch event":"中间参数捕获事件","Terminate end event":"终止结束事件",Transaction:"事务子流程","Boundary event":"边界事件","Expanded pool/participant":"泳道（展开）","Create element":"创建元素","Append element":"追加元素","Create user task":"创建用户任务","Append user task":"追加用户任务","Append compensation service task":"追加补偿服务任务","Set as the default flow":"设为默认流",Gateways:"网关",Tasks:"任务","Sub-processes":"子流程",Events:"事件",Data:"数据对象",Participants:"协助","Simulation Log":"模拟日志","No Entries":"暂无数据",Started:"已启动",Finished:"已结束","Process started":"流程启动","SubProcess started":"子流程启动","Process finished":"流程结束","SubProcess finished":"子流程结束","Process canceled":"流程取消","SubProcess canceled":"子流程取消","Intermediate event":"中间事件","Reset Simulation":"重置状态","Play/Pause Simulation":"继续/暂停","Play Simulation":"开始模拟","Pause Simulation":"暂停模拟","Toggle Simulation Log":"模拟日志","Show Simulation Log":"显示日志","Hide Simulation Log":"隐藏日志"},ap=o=>Object.prototype.toString.call(o),rp=o=>ap(o)==="[object Object]",ip="__bpmn-designer__";function sp(o){const t=window.localStorage.getItem(`${ip}${o}`);return t?JSON.parse(t):null}function lp(o,t){return t=t||{},sp("local-lang")!=="en_US"&&(o=op[o]||S4[o]||o),o.replace(/{([^}]+)}/g,function(n,a){return t[a]||"{"+a+"}"})}const cp=[{translate:["value",lp]}];class pl{constructor(t){H(this,"_commandStack");this._commandStack=t}preExecute(t=[]){const n=this._commandStack;for(const a of t)if(a){let r=a.context;typeof r=="function"&&(r=r()),n.execute(a.cmd,r)}}}H(pl,"$inject");pl.$inject=["commandStack"];const k1={"panel.multi-command":pl};class ml{constructor(t,n){t.on("diagram.init",function(){Object.keys(k1).forEach(a=>n.registerHandler(a,k1[a]))})}}H(ml,"$inject");ml.$inject=["eventBus","commandStack"];class Uu extends T4{constructor(t){super(t),this.preExecute(["panel.multi-command"],function(n){}),this.preExecuted(["panel.multi-command"],function(n){}),this.execute(["panel.multi-command"],function(n){}),this.executed(["panel.multi-command"],function(n){}),this.postExecute(["panel.multi-command"],function(n){}),this.postExecuted(["panel.multi-command"],function(n){})}}Uu.$inject=["eventBus"];const up={__init__:["commandInitializer","multiCommandInterceptor"],commandInitializer:["type",ml],multiCommandInterceptor:["type",Uu]};function so(o){const t=o.get("canvas").getRootElement();return z.is(t,"bpmn:Collaboration")?t.children[0].businessObject.processRef.id:t.id}function ps(o){return z.is(o,"bpmn:Participant")&&o.businessObject.get("processRef")}function dp(o){return o&&o.get("body")||""}function pp(o){const t=z.getBusinessObject(o);return z.is(o,"bpmn:Participant")?t.get("processRef"):t}const mp=["bpmn:ExclusiveGateway"];function fp(o){return z.is(o,"bpmn:SequenceFlow")&&z.isAny(o.source,mp)}class hp extends k4{constructor(n,a,r,i,s,l,c,u,d,p,m,f,h){super(n,a,r,i,s,l,c,u,d,p,m,f,h);H(this,"_contextPad");H(this,"_modeling");H(this,"_elementFactory");H(this,"_connect");H(this,"_create");H(this,"_popupMenu");H(this,"_canvas");H(this,"_rules");H(this,"_translate");H(this,"_autoPlace");this._contextPad=i,this._modeling=s,this._elementFactory=l,this._connect=c,this._create=u,this._popupMenu=d,this._canvas=p,this._rules=m,this._translate=f,this._autoPlace=a.get("autoPlace",!1)}getContextPadEntries(n){var d;const a=this._modeling,r=this._autoPlace,i=this._elementFactory,s=this._create,l=this._translate,c=super.getContextPadEntries(n);if((z.is(n,"bpmn:Participant")||z.is(n,"bpmn:Lane"))&&!nt.isHorizontal(n)&&(c["lane-insert-above"]&&(c["lane-insert-above"].className+=" is-vertical"),c["lane-divide-two"]&&(c["lane-divide-two"].className+=" is-vertical"),c["lane-divide-three"]&&(c["lane-divide-three"].className+=" is-vertical"),c["lane-insert-below"]&&(c["lane-insert-below"].className+=" is-vertical")),c["append.append-task"]){const p=(f,h)=>{const y=i.createShape({type:"bpmn:UserTask"});s.start(f,y,{source:h})},m=this._autoPlace?(f,h)=>{const y=i.createShape({type:"bpmn:UserTask"});r.append(h,y)}:p;c["append.append-task"]={group:"model",className:"bpmn-icon-user-task",title:l("Append user task"),action:{dragstart:p,click:m}}}if(c["append.compensation-activity"]){const p=(f,h)=>{const y=i.createShape({type:"bpmn:ServiceTask"});s.start(f,y,{source:h})},m=this._autoPlace?(f,h)=>{const y=i.createShape({type:"bpmn:ServiceTask"});r.append(h,y)}:p;c["append.compensation-activity"]={group:"model",className:"bpmn-icon-service-task",title:l("Append compensation service task"),action:{dragstart:p,click:m}}}return fp(n)&&((d=n.businessObject.sourceRef)==null?void 0:d.default)!==n.businessObject&&(c["edit.replace-default"]={group:"edit",className:"bpmn-icon-default-flow",title:l("Set as the default flow"),action:{click:()=>{a.updateProperties(n.source,{default:n.businessObject})}}}),c}}class fl{constructor(t,n,a,r,i,s,l,c){H(this,"_palette");H(this,"_spaceTool");H(this,"_lassoTool");H(this,"_handTool");H(this,"_globalConnect");H(this,"_elementFactory");H(this,"_create");H(this,"_translate");this._palette=t,this._create=n,this._elementFactory=a,this._spaceTool=r,this._lassoTool=i,this._handTool=s,this._globalConnect=l,this._translate=c,t.registerProvider(this)}getPaletteEntries(){const t={},n=this._create,a=this._elementFactory,r=this._spaceTool,i=this._lassoTool,s=this._handTool,l=this._globalConnect,c=this._translate;function u(m,f,h,y,g){function C(x){const D=a.createShape(cs({type:m},g));n.start(x,D)}return{group:f,className:h,title:y,action:{dragstart:C,click:C}}}function d(m){const f=a.createShape({type:"bpmn:SubProcess",x:0,y:0,isExpanded:!0}),h=a.createShape({type:"bpmn:StartEvent",x:40,y:82,parent:f});n.start(m,[f,h],{hints:{autoSelect:[f]}})}function p(m){n.start(m,a.createParticipantShape())}return cs(t,{"hand-tool":{group:"tools",className:"bpmn-icon-hand-tool",title:c("Activate hand tool"),action:{click:function(m){s.activateHand(m)}}},"lasso-tool":{group:"tools",className:"bpmn-icon-lasso-tool",title:c("Activate lasso tool"),action:{click:function(m){i.activateSelection(m)}}},"space-tool":{group:"tools",className:"bpmn-icon-space-tool",title:c("Activate create/remove space tool"),action:{click:function(m){r.activateSelection(m)}}},"global-connect-tool":{group:"tools",className:"bpmn-icon-connection-multi",title:c("Activate global connect tool"),action:{click:function(m){l.start(m)}}},"tool-separator":{group:"tools",separator:!0},"create.start-event":u("bpmn:StartEvent","start-event","bpmn-icon-start-event-none",c("Create start event")),"create.user-task":u("bpmn:UserTask","activity","bpmn-icon-user-task",c("Create user task")),"create.exclusive-gateway":u("bpmn:ExclusiveGateway","gateway","bpmn-icon-gateway-none",c("Create gateway")),"create.end-event":u("bpmn:EndEvent","end-event","bpmn-icon-end-event-none",c("Create end event")),"create.intermediate-event":u("bpmn:IntermediateThrowEvent","im-event","bpmn-icon-intermediate-event-none",c("Create intermediate/boundary event")),"create.subprocess-expanded":{group:"sub-activity",className:"bpmn-icon-subprocess-expanded",title:c("Create expanded sub-process"),action:{dragstart:d,click:d}},"create.participant-expanded":{group:"collaboration",className:"bpmn-icon-participant",title:c("Create pool/participant"),action:{dragstart:p,click:p}}}),t}}H(fl,"$inject");fl.$inject=["palette","create","elementFactory","spaceTool","lassoTool","handTool","globalConnect","translate"];function x1(o){return function(t){const n=t.target,a=z.getBusinessObject(o),r=a.eventDefinitions&&a.eventDefinitions[0],i=a.$type===n.type,s=(r&&r.$type)===n.eventDefinitionType,l=!!n.triggeredByEvent==!!a.triggeredByEvent,c=n.isExpanded===void 0||n.isExpanded===nt.isExpanded(o),u=!i||!s||!l||!c,d=a.get("type")===n.childType,p=Lt(a,n.extensionElement)[0],m=(p&&p.$type)===n.extensionElement;return z.is(o,"bpmn:ServiceTask")?u||!d:z.is(o,"bpmn:Event")?u||!m:u||a.get("type")!==n.childType}}const vp=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message start event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer start event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Conditional start event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Signal start event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Variable start event",actionName:"replace-with-multiple-start",className:"bpmn-icon-start-event-multiple",target:{type:"bpmn:StartEvent",extensionElement:"flowable:VariableListenerEventDefinition"}}],gp=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throwing",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}}],bp=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message intermediate catch event",actionName:"replace-with-message-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Message intermediate throw event",actionName:"replace-with-message-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-message",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Timer intermediate catch event",actionName:"replace-with-timer-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:TimerEventDefinition"}},{label:"Escalation intermediate throw event",actionName:"replace-with-escalation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-escalation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Conditional intermediate catch event",actionName:"replace-with-conditional-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition"}},{label:"Link intermediate catch event",actionName:"replace-with-link-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-link",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Variable intermediate catch event",actionName:"replace-with-multiple-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-multiple",target:{type:"bpmn:IntermediateCatchEvent",extensionElement:"flowable:VariableListenerEventDefinition"}},{label:"Link intermediate throw event",actionName:"replace-with-link-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-link",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:LinkEventDefinition",eventDefinitionAttrs:{name:""}}},{label:"Compensation intermediate throw event",actionName:"replace-with-compensation-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-compensation",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal intermediate catch event",actionName:"replace-with-signal-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:IntermediateCatchEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Signal intermediate throw event",actionName:"replace-with-signal-intermediate-throw",className:"bpmn-icon-intermediate-event-throw-signal",target:{type:"bpmn:IntermediateThrowEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}}],yp=[{label:"Start event",actionName:"replace-with-none-start",className:"bpmn-icon-start-event-none",target:{type:"bpmn:StartEvent"}},{label:"Intermediate throw event",actionName:"replace-with-none-intermediate-throw",className:"bpmn-icon-intermediate-event-none",target:{type:"bpmn:IntermediateThrowEvent"}},{label:"End event",actionName:"replace-with-none-end",className:"bpmn-icon-end-event-none",target:{type:"bpmn:EndEvent"}},{label:"Message end event",actionName:"replace-with-message-end",className:"bpmn-icon-end-event-message",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:MessageEventDefinition"}},{label:"Escalation end event",actionName:"replace-with-escalation-end",className:"bpmn-icon-end-event-escalation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:EscalationEventDefinition"}},{label:"Error end event",actionName:"replace-with-error-end",className:"bpmn-icon-end-event-error",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:ErrorEventDefinition"}},{label:"Cancel end event",actionName:"replace-with-cancel-end",className:"bpmn-icon-end-event-cancel",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CancelEventDefinition"}},{label:"Compensation end event",actionName:"replace-with-compensation-end",className:"bpmn-icon-end-event-compensation",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:CompensateEventDefinition"}},{label:"Signal end event",actionName:"replace-with-signal-end",className:"bpmn-icon-end-event-signal",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:SignalEventDefinition"}},{label:"Terminate end event",actionName:"replace-with-terminate-end",className:"bpmn-icon-end-event-terminate",target:{type:"bpmn:EndEvent",eventDefinitionType:"bpmn:TerminateEventDefinition"}}],Ep=[{label:"Exclusive gateway",actionName:"replace-with-exclusive-gateway",className:"bpmn-icon-gateway-xor",target:{type:"bpmn:ExclusiveGateway"}},{label:"Parallel gateway",actionName:"replace-with-parallel-gateway",className:"bpmn-icon-gateway-parallel",target:{type:"bpmn:ParallelGateway"}},{label:"Inclusive gateway",actionName:"replace-with-inclusive-gateway",className:"bpmn-icon-gateway-or",target:{type:"bpmn:InclusiveGateway"}},{label:"Complex gateway",actionName:"replace-with-complex-gateway",className:"bpmn-icon-gateway-complex",target:{type:"bpmn:ComplexGateway"}},{label:"Event-based gateway",actionName:"replace-with-event-based-gateway",className:"bpmn-icon-gateway-eventbased",target:{type:"bpmn:EventBasedGateway",instantiate:!1,eventGatewayType:"Exclusive"}}],wp=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Event sub-process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}},{label:"Sub-process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],Hu=[{label:"Transaction",actionName:"replace-with-transaction",className:"bpmn-icon-transaction",target:{type:"bpmn:Transaction",isExpanded:!0}},{label:"Sub-process",actionName:"replace-with-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Event sub-process",actionName:"replace-with-event-subprocess",className:"bpmn-icon-event-subprocess-expanded",target:{type:"bpmn:SubProcess",triggeredByEvent:!0,isExpanded:!0}}],Cp=Hu,V1=[{label:"User task",actionName:"replace-with-user-task",className:"bpmn-icon-user",target:{type:"bpmn:UserTask"}},{label:"Copy Service Task",actionName:"replace-with-copy-service-task",className:"fbpmn-icon-copy-service-task",target:{type:"bpmn:ServiceTask",childType:"copy"}},{label:"Sc Service Task",actionName:"replace-with-sc-service-task",className:"fbpmn-icon-sc-service-task",target:{type:"bpmn:ServiceTask",childType:"sc"}},{label:"Service task",actionName:"replace-with-service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Dmn Service Task",actionName:"replace-with-dmn-service-task",className:"fbpmn-icon-dmn-service-task",target:{type:"bpmn:ServiceTask",childType:"dmn"}},{label:"Mq Service Task",actionName:"replace-with-mq-service-task",className:"fbpmn-icon-mq-service-task",target:{type:"bpmn:ServiceTask",childType:"mq"}},{label:"Call activity",actionName:"replace-with-call-activity",className:"bpmn-icon-call-activity",target:{type:"bpmn:CallActivity"}},{label:"Sub-process (expanded)",actionName:"replace-with-expanded-subprocess",className:"bpmn-icon-subprocess-expanded",target:{type:"bpmn:SubProcess",isExpanded:!0}},{label:"Rest Service Task",actionName:"replace-with-rest-service-task",className:"fbpmn-icon-rest-service-task",target:{type:"bpmn:ServiceTask",childType:"rest"}},{label:"Http Service Task",actionName:"replace-with-http-service-task",className:"fbpmn-icon-http-service-task",target:{type:"bpmn:ServiceTask",childType:"http"}},{label:"Mail Service Task",actionName:"replace-with-mail-service-task",className:"fbpmn-icon-mail-service-task",target:{type:"bpmn:ServiceTask",childType:"mail"}},{label:"Script task",actionName:"replace-with-script-task",className:"bpmn-icon-script",target:{type:"bpmn:ScriptTask"}},{label:"Shell Service Task",actionName:"replace-with-shell-service-task",className:"ibpmn-icon-shell-service-task",target:{type:"bpmn:ServiceTask",childType:"shell"}},{label:"Send task",actionName:"replace-with-send-task",className:"bpmn-icon-send",target:{type:"bpmn:SendTask"}},{label:"Receive task",actionName:"replace-with-receive-task",className:"bpmn-icon-receive",target:{type:"bpmn:ReceiveTask"}},{label:"Manual task",actionName:"replace-with-manual-task",className:"bpmn-icon-manual",target:{type:"bpmn:ManualTask"}},{label:"Camel Service Task",actionName:"replace-with-camel-service-task",className:"fbpmn-icon-camel-service-task",target:{type:"bpmn:ServiceTask",childType:"camel"}},{label:"Sub-process (collapsed)",actionName:"replace-with-collapsed-subprocess",className:"bpmn-icon-subprocess-collapsed",target:{type:"bpmn:SubProcess",isExpanded:!1}}],_p=[{label:"Data store reference",actionName:"replace-with-data-store-reference",className:"bpmn-icon-data-store",target:{type:"bpmn:DataStoreReference"}}],Np=[{label:"Data object reference",actionName:"replace-with-data-object-reference",className:"bpmn-icon-data-object",target:{type:"bpmn:DataObjectReference"}}],Sp=[{label:"Message boundary event",actionName:"replace-with-message-boundary",className:"bpmn-icon-intermediate-event-catch-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!0}},{label:"Timer boundary event",actionName:"replace-with-timer-boundary",className:"bpmn-icon-intermediate-event-catch-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!0}},{label:"Escalation boundary event",actionName:"replace-with-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!0}},{label:"Conditional boundary event",actionName:"replace-with-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!0}},{label:"Variable boundary event",actionName:"replace-with-multiple-boundary",className:"bpmn-icon-intermediate-event-catch-multiple",target:{type:"bpmn:BoundaryEvent",extensionElement:"flowable:VariableListenerEventDefinition",cancelActivity:!0}},{label:"Error boundary event",actionName:"replace-with-error-boundary",className:"bpmn-icon-intermediate-event-catch-error",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",cancelActivity:!0}},{label:"Cancel boundary event",actionName:"replace-with-cancel-boundary",className:"bpmn-icon-intermediate-event-catch-cancel",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CancelEventDefinition",cancelActivity:!0}},{label:"Signal boundary event",actionName:"replace-with-signal-boundary",className:"bpmn-icon-intermediate-event-catch-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!0}},{label:"Compensation boundary event",actionName:"replace-with-compensation-boundary",className:"bpmn-icon-intermediate-event-catch-compensation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",cancelActivity:!0}},{label:"Message boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-message-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-message",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:MessageEventDefinition",cancelActivity:!1}},{label:"Timer boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:TimerEventDefinition",cancelActivity:!1}},{label:"Escalation boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",cancelActivity:!1}},{label:"Conditional boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",cancelActivity:!1}},{label:"Variable boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-multiple-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-multiple",target:{type:"bpmn:BoundaryEvent",extensionElement:"flowable:VariableListenerEventDefinition",cancelActivity:!1}},{label:"Signal boundary event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-boundary",className:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",target:{type:"bpmn:BoundaryEvent",eventDefinitionType:"bpmn:SignalEventDefinition",cancelActivity:!1}}],Tp=[{label:"Message start event",actionName:"replace-with-message-start",className:"bpmn-icon-start-event-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!0}},{label:"Timer start event",actionName:"replace-with-timer-start",className:"bpmn-icon-start-event-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!0}},{label:"Conditional start event",actionName:"replace-with-conditional-start",className:"bpmn-icon-start-event-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!0}},{label:"Signal start event",actionName:"replace-with-signal-start",className:"bpmn-icon-start-event-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!0}},{label:"Error start event",actionName:"replace-with-error-start",className:"bpmn-icon-start-event-error",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ErrorEventDefinition",isInterrupting:!0}},{label:"Escalation start event",actionName:"replace-with-escalation-start",className:"bpmn-icon-start-event-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!0}},{label:"Compensation start event",actionName:"replace-with-compensation-start",className:"bpmn-icon-start-event-compensation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:CompensateEventDefinition",isInterrupting:!0}},{label:"Variable start event",actionName:"replace-with-multiple-start",className:"bpmn-icon-start-event-multiple",target:{type:"bpmn:StartEvent",extensionElement:"flowable:VariableListenerEventDefinition"}},{label:"Message start event (non-interrupting)",actionName:"replace-with-non-interrupting-message-start",className:"bpmn-icon-start-event-non-interrupting-message",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:MessageEventDefinition",isInterrupting:!1}},{label:"Timer start event (non-interrupting)",actionName:"replace-with-non-interrupting-timer-start",className:"bpmn-icon-start-event-non-interrupting-timer",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:TimerEventDefinition",isInterrupting:!1}},{label:"Conditional start event (non-interrupting)",actionName:"replace-with-non-interrupting-conditional-start",className:"bpmn-icon-start-event-non-interrupting-condition",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:ConditionalEventDefinition",isInterrupting:!1}},{label:"Signal start event (non-interrupting)",actionName:"replace-with-non-interrupting-signal-start",className:"bpmn-icon-start-event-non-interrupting-signal",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:SignalEventDefinition",isInterrupting:!1}},{label:"Escalation start event (non-interrupting)",actionName:"replace-with-non-interrupting-escalation-start",className:"bpmn-icon-start-event-non-interrupting-escalation",target:{type:"bpmn:StartEvent",eventDefinitionType:"bpmn:EscalationEventDefinition",isInterrupting:!1}},{label:"Variable start event (non-interrupting)",actionName:"replace-with-non-interrupting-multiple-start",className:"bpmn-icon-start-event-non-interrupting-multiple",target:{type:"bpmn:StartEvent",extensionElement:"flowable:VariableListenerEventDefinition",isInterrupting:!1}}],kp=[{label:"Sequence flow",actionName:"replace-with-sequence-flow",className:"bpmn-icon-connection"},{label:"Default flow",actionName:"replace-with-default-flow",className:"bpmn-icon-default-flow"},{label:"Conditional flow",actionName:"replace-with-conditional-flow",className:"bpmn-icon-conditional-flow"}],A1=[{label:"Horizontal expanded pool/participant",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant",target:{type:"bpmn:Participant",isEmpty:!1,isExpanded:!0,isHorizontal:!0}},{label:"Vertical expanded pool/participant",actionName:"replace-with-expanded-pool",className:"bpmn-icon-participant is-vertical",target:{type:"bpmn:Participant",isEmpty:!1,isExpanded:!0,isHorizontal:!1}},{label:function(o){let t="Empty pool/participant";return o.children&&o.children.length&&(t+=" (removes content)"),t},actionName:"replace-with-collapsed-pool",className:"bpmn-icon-lane",target:{type:"bpmn:Participant",isEmpty:!0,isExpanded:!1,isHorizontal:!0}}];class Zu extends x4{constructor(n,a,r,i,s,l,c,u){super(n,a,r,i,s,l,c,u);H(this,"_bpmnFactory");H(this,"_popupMenu");H(this,"_modeling");H(this,"_moddle");H(this,"_bpmnReplace");H(this,"_rules");H(this,"_translate");H(this,"_moddleCopy");H(this,"_createEntries");this._bpmnFactory=n,this._popupMenu=a,this._modeling=r,this._moddle=i,this._bpmnReplace=s,this._rules=l,this._translate=c,this._moddleCopy=u,this._register(),this._createEntries=super._createEntries}_getLoopCharacteristicsHeaderEntries(n){const a=this._translate,r=this._modeling,i=this._moddle,s=this._moddleCopy,l=(m,f)=>{if(f.active){r.updateProperties(n,{loopCharacteristics:void 0});return}const h=n.businessObject.get("loopCharacteristics"),y=i.create(f.options.loopCharacteristics);h&&s.copyElement(h,y),y.set("isSequential",f.options.isSequential),r.updateProperties(n,{loopCharacteristics:y})},c=z.getBusinessObject(n),u=c.loopCharacteristics;let d,p;return u&&(d=u.isSequential,p=u.isSequential!==void 0&&!u.isSequential),{"toggle-parallel-mi":{className:"bpmn-icon-parallel-mi-marker",title:a("Parallel multi-instance"),active:p,action:l,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!1}},"toggle-sequential-mi":{className:"bpmn-icon-sequential-mi-marker",title:a("Sequential multi-instance"),active:d,action:l,options:{loopCharacteristics:"bpmn:MultiInstanceLoopCharacteristics",isSequential:!0}}}}getPopupMenuEntries(n){const a=n.businessObject,r=this._rules;let i=[];if(Wo(n)||!r.allowed("shape.replace",{element:n}))return{};const s=x1(n);return z.is(a,"bpmn:DataObjectReference")?this._createEntries(n,_p):z.is(a,"bpmn:DataStoreReference")&&!z.is(n.parent,"bpmn:Collaboration")?this._createEntries(n,Np):z.is(a,"bpmn:StartEvent")&&!z.is(a.$parent,"bpmn:SubProcess")?(i=Et(vp,s),this._createEntries(n,i)):z.is(a,"bpmn:Participant")?V4.getChildLanes(n).length?(i=Et(A1,function(c){var u;return((u=c.target)==null?void 0:u.isEmpty)===!0}),this._createEntries(n,i)):(i=Et(A1,function(c){return nt.isExpanded(n)!==c.target.isExpanded||nt.isHorizontal(n)!==c.target.isHorizontal}),this._createEntries(n,i)):z.is(a,"bpmn:StartEvent")&&nt.isEventSubProcess(a.$parent)?(i=Et(Tp,function(l){const u=l.target.isInterrupting!==!1,d=a.isInterrupting===u;return s(l)||!s(l)&&!d}),this._createEntries(n,i)):z.is(a,"bpmn:StartEvent")&&!nt.isEventSubProcess(a.$parent)&&z.is(a.$parent,"bpmn:SubProcess")?(i=Et(gp,s),this._createEntries(n,i)):z.is(a,"bpmn:EndEvent")?(i=Et(yp,function(l){return l.target.eventDefinitionType=="bpmn:CancelEventDefinition"&&!z.is(a.$parent,"bpmn:Transaction")?!1:s(l)}),this._createEntries(n,i)):z.is(a,"bpmn:BoundaryEvent")?(i=Et(Sp,function(l){const c=l.target;if(c.eventDefinitionType=="bpmn:CancelEventDefinition"&&!z.is(a.attachedToRef,"bpmn:Transaction"))return!1;const u=c.cancelActivity!==!1,d=a.cancelActivity==u;return s(l)||!s(l)&&!d}),this._createEntries(n,i)):z.is(a,"bpmn:IntermediateCatchEvent")||z.is(a,"bpmn:IntermediateThrowEvent")?(i=Et(bp,s),this._createEntries(n,i)):z.is(a,"bpmn:Gateway")?(i=Et(Ep,s),this._createEntries(n,i)):z.is(a,"bpmn:Transaction")?(i=Et(Hu,s),this._createEntries(n,i)):nt.isEventSubProcess(a)&&nt.isExpanded(n)?(i=Et(Cp,s),this._createEntries(n,i)):z.is(a,"bpmn:SubProcess")&&nt.isExpanded(n)?(i=Et(wp,s),this._createEntries(n,i)):z.is(a,"bpmn:AdHocSubProcess")&&!nt.isExpanded(n)?(i=Et(V1,function(l){const c=l.target,u=c.type==="bpmn:SubProcess",d=c.isExpanded===!0;return x1(c)&&(!u||d)}),this._createEntries(n,i)):z.is(a,"bpmn:SequenceFlow")?this._createSequenceFlowEntries(n,kp):z.is(a,"bpmn:FlowNode")?(i=Et(V1,s),z.is(a,"bpmn:SubProcess")&&!nt.isExpanded(n)&&(i=Et(i,function(l){return l.label!=="Sub-process (collapsed)"})),this._createEntries(n,i)):{}}}Zu.$inject=["bpmnFactory","popupMenu","modeling","moddle","bpmnReplace","rules","translate","moddleCopy"];const zu=[{label:"Copy Service Task",actionName:"copy-service-task",className:"fbpmn-icon-copy-service-task",target:{type:"bpmn:ServiceTask",childType:"copy"}},{label:"Sc Service Task",actionName:"sc-service-task",className:"fbpmn-icon-sc-service-task",target:{type:"bpmn:ServiceTask",childType:"sc"}},{label:"Service task",actionName:"service-task",className:"bpmn-icon-service",target:{type:"bpmn:ServiceTask"}},{label:"Dmn Service Task",actionName:"dmn-service-task",className:"fbpmn-icon-dmn-service-task",target:{type:"bpmn:ServiceTask",childType:"dmn"}},{label:"Mq Service Task",actionName:"mq-service-task",className:"fbpmn-icon-mq-service-task",target:{type:"bpmn:ServiceTask",childType:"mq"}},{label:"Rest Service Task",actionName:"rest-service-task",className:"fbpmn-icon-rest-service-task",target:{type:"bpmn:ServiceTask",childType:"rest"}},{label:"Http Service Task",actionName:"http-service-task",className:"fbpmn-icon-http-service-task",target:{type:"bpmn:ServiceTask",childType:"http"}},{label:"Mail Service Task",actionName:"mail-service-task",className:"fbpmn-icon-mail-service-task",target:{type:"bpmn:ServiceTask",childType:"mail"}},{label:"Camel Service Task",actionName:"camel-service-task",className:"fbpmn-icon-camel-service-task",target:{type:"bpmn:ServiceTask",childType:"camel"}}],xp=[{label:"Variable start event",idx:6,actionName:"variable-start-event",className:"bpmn-icon-start-event-multiple",target:{type:"bpmn:StartEvent",extensionElement:"flowable:VariableListenerEventDefinition"}}],Gu=[{label:"Variable intermediate catch event",actionName:"variable-intermediate-catch",className:"bpmn-icon-intermediate-event-catch-multiple",target:{type:"bpmn:IntermediateCatchEvent",extensionElement:"flowable:VariableListenerEventDefinition"}},{label:"Variable boundary event",actionName:"variable-boundary-event",className:"bpmn-icon-intermediate-event-catch-multiple",target:{type:"bpmn:BoundaryEvent",extensionElement:"flowable:VariableListenerEventDefinition",cancelActivity:!0}},{label:"Variable boundary event (non-interrupting)",actionName:"non-interrupting-variable-boundary-event",className:"bpmn-icon-intermediate-event-catch-non-interrupting-multiple",target:{type:"bpmn:BoundaryEvent",extensionElement:"flowable:VariableListenerEventDefinition",cancelActivity:!1}}];class hl{constructor(t,n,a,r,i,s,l,c){H(this,"_elementFactory");H(this,"_bpmnFactory");H(this,"_popupMenu");H(this,"_create");H(this,"_autoPlace");H(this,"_mouse");H(this,"_moddle");H(this,"_translate");this._elementFactory=t,this._bpmnFactory=n,this._popupMenu=a,this._create=r,this._autoPlace=i,this._mouse=s,this._moddle=l,this._translate=c,this.register()}register(){this._popupMenu.registerProvider("bpmn-create",this)}getPopupMenuEntries(){const t=this._translate,n={};for(const a of zu){const r={id:"tasks",name:t("Tasks")};this._assignEntry(n,{...a,group:r})}for(const a of xp){const r={id:"events",name:t("Events")};this._assignEntry(n,{...a,group:r})}for(const a of Gu){const r={id:"events",name:t("Events")};this._assignEntry(n,{...a,group:r})}return n}_assignEntry(t,n){const{className:a,actionName:r,label:i,target:s,group:l}=n,c=this._createEntryAction(s);t[`create-${r}`]={label:this._translate(i),className:a,group:l,rank:1,action:c}}_createEntryAction(t){const n=this._create,a=this._mouse,r=this._moddle,i=this._popupMenu,s=this._elementFactory,l=this._bpmnFactory,{type:c,childType:u,extensionElement:d}=t;return p=>{i.close();let m;if(u){const f=l.create(c,{"flowable:type":u});m=s.create("shape",{type:c,businessObject:f})}else if(d){const f=r.create(d),h=r.create("bpmn:ExtensionElements",{values:[f]}),y=l.create(c,{extensionElements:h});m=s.create("shape",{type:c,businessObject:y})}else m=s.create("shape",{...t});return p instanceof KeyboardEvent&&(p=a.getLastMoveEvent()),n.start(p,m)}}}H(hl,"$inject");hl.$inject=["elementFactory","bpmnFactory","popupMenu","create","autoPlace","mouse","moddle","translate"];class vl{constructor(t,n,a,r,i,s,l,c,u){H(this,"_elementFactory");H(this,"_bpmnFactory");H(this,"_popupMenu");H(this,"_create");H(this,"_autoPlace");H(this,"_rules");H(this,"_mouse");H(this,"_moddle");H(this,"_translate");this._elementFactory=t,this._bpmnFactory=n,this._popupMenu=a,this._create=r,this._autoPlace=i,this._rules=s,this._mouse=l,this._moddle=c,this._translate=u,this.register()}register(){this._popupMenu.registerProvider("bpmn-append",this)}getPopupMenuEntries(t){const n=this._rules,a=this._translate,r={};if(!n.allowed("shape.append",{element:t}))return[];for(const i of zu){const s={id:"tasks",name:a("Tasks")};this._assignEntry(t,r,{...i,group:s})}for(const i of Gu){const s={id:"events",name:a("Events")};this._assignEntry(t,r,{...i,group:s})}return r}_assignEntry(t,n,a){const{className:r,actionName:i,label:s,target:l,group:c}=a,u=this._createEntryAction(t,l);n[`append-${i}`]={label:this._translate(s),className:r,group:c,rank:1,action:u}}_createEntryAction(t,n){const a=this._elementFactory,r=this._moddle,i=this._bpmnFactory,s=this._autoPlace,l=this._create,c=this._mouse,{type:u,childType:d,extensionElement:p}=n,m=()=>{const h=i.create(u,{"flowable:type":d}),y=a.create("shape",{type:u,businessObject:h});s.append(t,y)},f=h=>{let y;if(d){const g=i.create(u,{"flowable:type":d});y=a.create("shape",{type:u,businessObject:g})}else if(p){const g=r.create(p),C=r.create("bpmn:ExtensionElements",{values:[g]}),x=i.create(u,{extensionElements:C});y=a.create("shape",{type:u,businessObject:x})}else y=a.create("shape",{...n});return h instanceof KeyboardEvent&&(h=c.getLastMoveEvent()),l.start(h,y,{source:t})};return{click:this._canAutoPlaceElement(n)?m:f,dragstart:f}}_canAutoPlaceElement(t){const{type:n}=t;return!(n==="bpmn:BoundaryEvent"||n==="bpmn:SubProcess"&&t.triggeredByEvent||n==="bpmn:IntermediateCatchEvent"&&t.eventDefinitionType==="bpmn:LinkEventDefinition")}}H(vl,"$inject");vl.$inject=["elementFactory","bpmnFactory","popupMenu","create","autoPlace","rules","mouse","moddle","translate"];const Vp=[{__init__:["customCreatePopupProvider","customAppendPopupProvider"],contextPadProvider:["type",hp],replaceMenuProvider:["type",Zu],paletteProvider:["type",fl],customCreatePopupProvider:["type",hl],customAppendPopupProvider:["type",vl]}];function Ap(o,t,n){Wo(n)||(n=[n]),n.forEach(a=>{S0(o[a])||(t[a]=o[a])})}const Dp=["cancelActivity","instantiate","eventGatewayType","triggeredByEvent","isInterrupting"];function Rp(o,t){const n=o&&gn(o,"collapsed")?o.collapsed:!nt.isExpanded(o);let a;return t&&(gn(t,"collapsed")||gn(t,"isExpanded"))?a=gn(t,"collapsed")?t.collapsed:!t.isExpanded:a=n,n!==a}function Sa(o){return z.is(o,"bpmn:SubProcess")}function D1(o,t){const n=z.getBusinessObject(o);return t&&n.get("eventDefinitions").some(a=>z.is(a,t))}function Ip(o,t){return o.filter(n=>t.includes(n))}var is;let Ku=(is=class{constructor(t,n,a,r,i,s,l){H(this,"replaceElement");function c(u,d,p={}){const m=d.type,f=d.childType,h=u.businessObject;if(Sa(h)&&m==="bpmn:SubProcess"&&Rp(u,d))return i.toggleCollapse(u),u;let y=t.create(m);const g={type:m,businessObject:y};y.type=f,y.parallelInSameTransaction=f==="http"||void 0,g.di={},m==="bpmn:ExclusiveGateway"&&(g.di.isMarkerVisible=!0),Ap(u.di,g.di,["fill","stroke","background-color","border-color","color"]);const C=b1.getPropertyNames(h.$descriptor),x=b1.getPropertyNames(y.$descriptor,!0),D=Ip(C,x);cs(y,e5(d,Dp));const _=Et(D,b=>u.type==="bpmn:ServiceTask"&&g.type==="bpmn:ServiceTask"?!1:b==="eventDefinitions"?D1(u,d.eventDefinitionType):b==="loopCharacteristics"?!nt.isEventSubProcess(y):gn(y,b)||b==="processRef"&&d.isExpanded===!1||b==="triggeredByEvent"?!1:b==="isForCompensation"?!nt.isEventSubProcess(y):!0);if(y=r.copyElement(h,y,_),d.eventDefinitionType&&(D1(y,d.eventDefinitionType)||(g.eventDefinitionType=d.eventDefinitionType,g.eventDefinitionAttrs=d.eventDefinitionAttrs)),z.is(h,"bpmn:Activity")){if(Sa(h))g.isExpanded=nt.isExpanded(u);else if(d&&gn(d,"isExpanded")){g.isExpanded=d.isExpanded;const b=n.getDefaultSize(y,{isExpanded:g.isExpanded});g.width=b.width,g.height=b.height,g.x=u.x-(g.width-u.width)/2,g.y=u.y-(g.height-u.height)/2}nt.isExpanded(u)&&!z.is(h,"bpmn:Task")&&g.isExpanded&&(g.width=u.width,g.height=u.height)}if(Sa(h)&&!Sa(y)&&(p.moveChildren=!1),z.is(h,"bpmn:Participant")){d.isExpanded===!0?y.processRef=t.create("bpmn:Process"):p.moveChildren=!1;const b=S0(d.isHorizontal)?!0:d.isHorizontal;g.di.isHorizontal=b,g.width=u.width,g.height=n.getDefaultSize(g,void 0).height}l.allowed("shape.resize",{shape:y})||(g.height=n.getDefaultSize(g,void 0).height,g.width=n.getDefaultSize(g,void 0).width),y.name=h.name,t0.isAny(h,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&t0.isAny(y,["bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:Activity"])&&(y.default=h.default),d.host&&!z.is(h,"bpmn:BoundaryEvent")&&z.is(y,"bpmn:BoundaryEvent")&&(g.host=d.host),(g.type==="bpmn:DataStoreReference"||g.type==="bpmn:DataObjectReference")&&(g.x=u.x+(u.width-g.width)/2),(h.type||d.childType)&&y.extensionElements&&Lt(h)&&(y.extensionElements.values=y.extensionElements.values.filter(b=>b.$type==="bpmn:Properties"||b.$type==="flowable:ExecutionListener"));const T=Lt(h,d.extensionElement)[0],E=Lt(y,d.extensionElement)[0],w=y.extensionElements;if(!d.extensionElement&&T&&w!=null&&w.values&&(w.values=w.values.filter(b=>b.$type!==T.$type)),d.extensionElement&&!E){y.extensionElements||(y.extensionElements=a.create("bpmn:ExtensionElements",{values:[]}));const b=a.create(d.extensionElement);y.extensionElements.values.push(b)}return s.replaceElement(u,g,{...p,targetElement:d})}this.replaceElement=c}},H(is,"$inject"),is);Ku.$inject=["bpmnFactory","elementFactory","moddle","moddleCopy","modeling","replace","rules"];const Op={bpmnReplace:["type",Ku]};var $p=function o(t,n){const a=n.enter||null,r=n.leave||null,i=a&&a(t),s=t.$descriptor;i!==!1&&!s.isGeneric&&s.properties.filter(c=>!c.isAttr&&!c.isReference&&c.type!=="String").forEach(c=>{if(c.name in t){const u=t[c.name];c.isMany?u.forEach(d=>{o(d,n)}):o(u,n)}}),r&&r(t)},ke={};function Lp(o){return Array.prototype.concat.apply([],o)}const Yo=Object.prototype.toString,Bp=Object.prototype.hasOwnProperty;function to(o){return o===void 0}function Wu(o){return o!==void 0}function gl(o){return o==null}function ur(o){return Yo.call(o)==="[object Array]"}function Ma(o){return Yo.call(o)==="[object Object]"}function Pp(o){return Yo.call(o)==="[object Number]"}function bl(o){const t=Yo.call(o);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"||t==="[object Proxy]"}function Mp(o){return Yo.call(o)==="[object String]"}function Yu(o){if(!ur(o))throw new Error("must supply array")}function Ju(o,t){return Bp.call(o,t)}function Xu(o,t){const n=pr(t);let a;return At(o,function(r,i){if(n(r,i))return a=r,!1}),a}function Fp(o,t){const n=pr(t);let a=ur(o)?-1:void 0;return At(o,function(r,i){if(n(r,i))return a=i,!1}),a}function jp(o,t){const n=pr(t);let a=[];return At(o,function(r,i){n(r,i)&&a.push(r)}),a}function At(o,t){let n,a;if(to(o))return;const r=ur(o)?Yp:Wp;for(let i in o)if(Ju(o,i)&&(n=o[i],a=t(n,r(i)),a===!1))return n}function qp(o,t){if(to(o))return[];Yu(o);const n=pr(t);return o.filter(function(a,r){return!n(a,r)})}function Qu(o,t,n){return At(o,function(a,r){n=t(n,a,r)}),n}function e2(o,t){return!!Qu(o,function(n,a,r){return n&&t(a,r)},!0)}function Up(o,t){return!!Xu(o,t)}function dr(o,t){let n=[];return At(o,function(a,r){n.push(t(a,r))}),n}function t2(o){return o&&Object.keys(o)||[]}function Hp(o){return t2(o).length}function Zp(o){return dr(o,t=>t)}function n2(o,t,n={}){return t=yl(t),At(o,function(a){let r=t(a)||"_",i=n[r];i||(i=n[r]=[]),i.push(a)}),n}function o2(o,...t){o=yl(o);let n={};return At(t,r=>n2(r,o,n)),dr(n,function(r,i){return r[0]})}const zp=o2;function Gp(o,t){t=yl(t);let n=[];return At(o,function(a,r){let i=t(a,r),s={d:i,v:a};for(var l=0;l<n.length;l++){let{d:c}=n[l];if(i<c){n.splice(l,0,s);return}}n.push(s)}),dr(n,a=>a.v)}function Kp(o){return function(t){return e2(o,function(n,a){return t[a]===n})}}function yl(o){return bl(o)?o:t=>t[o]}function pr(o){return bl(o)?o:t=>t===o}function Wp(o){return o}function Yp(o){return Number(o)}function Jp(o,t){let n,a,r,i;function s(p){let m=Date.now(),f=p?0:i+t-m;if(f>0)return l(f);o.apply(r,a),c()}function l(p){n=setTimeout(s,p)}function c(){n&&clearTimeout(n),n=i=a=r=void 0}function u(){n&&s(!0),c()}function d(...p){i=Date.now(),a=p,r=this,n||l(t)}return d.flush=u,d.cancel=c,d}function Xp(o,t){let n=!1;return function(...a){n||(o(...a),n=!0,setTimeout(()=>{n=!1},t))}}function Qp(o,t){return o.bind(t)}function em(o,...t){return Object.assign(o,...t)}function tm(o,t,n){let a=o;return At(t,function(r,i){if(typeof r!="number"&&typeof r!="string")throw new Error("illegal key type: "+typeof r+". Key should be of type number or string.");if(r==="constructor")throw new Error("illegal key: constructor");if(r==="__proto__")throw new Error("illegal key: __proto__");let s=t[i+1],l=a[r];Wu(s)&&gl(l)&&(l=a[r]=isNaN(+s)?{}:[]),to(s)?to(n)?delete a[r]:a[r]=n:a=l}),o}function nm(o,t,n){let a=o;return At(t,function(r){if(gl(a))return a=void 0,!1;a=a[r]}),to(a)?n:a}function om(o,t){let n={},a=Object(o);return At(t,function(r){r in a&&(n[r]=o[r])}),n}function am(o,t){let n={},a=Object(o);return At(a,function(r,i){t.indexOf(i)===-1&&(n[i]=r)}),n}function a2(o,...t){return t.length&&At(t,function(n){!n||!Ma(n)||At(n,function(a,r){if(r==="__proto__")return;let i=o[r];Ma(a)?(Ma(i)||(i={}),o[r]=a2(i,a)):o[r]=a})}),o}ke.assign=em;ke.bind=Qp;ke.debounce=Jp;ke.ensureArray=Yu;ke.every=e2;ke.filter=jp;ke.find=Xu;ke.findIndex=Fp;ke.flatten=Lp;ke.forEach=At;ke.get=nm;ke.groupBy=n2;ke.has=Ju;ke.isArray=ur;ke.isDefined=Wu;ke.isFunction=bl;ke.isNil=gl;ke.isNumber=Pp;ke.isObject=Ma;ke.isString=Mp;ke.isUndefined=to;ke.keys=t2;ke.map=dr;ke.matchPattern=Kp;ke.merge=a2;ke.omit=am;ke.pick=om;ke.reduce=Qu;ke.set=tm;ke.size=Hp;ke.some=Up;ke.sortBy=Gp;ke.throttle=Xp;ke.unionBy=zp;ke.uniqueBy=o2;ke.values=Zp;ke.without=qp;const rm=$p,{isArray:im,isObject:sm}=ke;class lm{constructor({moddleRoot:t,rule:n}){this.rule=n,this.moddleRoot=t,this.messages=[],this.report=this.report.bind(this)}report(t,n,a){let r={id:t,message:n};a&&im(a)&&(r={...r,path:a}),a&&sm(a)&&(r={...r,...a}),this.messages.push(r)}}var cm=function({moddleRoot:t,rule:n}){const a=new lm({rule:n,moddleRoot:t}),r=n.check,i=r&&r.enter||r,s=r&&r.leave;if(!i&&!s)throw new Error("no check implemented");return rm(t,{enter:i?l=>i(l,a):null,leave:s?l=>s(l,a):null}),a.messages};const um=cm,dm={0:"off",1:"warn",2:"error",3:"info"},pm="rule-error";function n0(o={}){const{config:t,resolver:n}=o;if(typeof n>"u")throw new Error("must provide <options.resolver>");this.config=t,this.resolver=n,this.cachedRules={},this.cachedConfigs={}}var mm=n0;n0.prototype.applyRule=function(t,n){const{config:a,rule:r,category:i,name:s}=n;try{return um({moddleRoot:t,rule:r,config:a}).map(function(c){return{...c,category:i}})}catch(l){return console.error("rule <"+s+"> failed with error: ",l),[{message:l.message,category:pm}]}};n0.prototype.resolveRule=function(o,t){const{pkg:n,ruleName:a}=this.parseRuleName(o),r=`${n}-${a}`,i=this.cachedRules[r];return i?Promise.resolve(i):Promise.resolve(this.resolver.resolveRule(n,a)).then(s=>{if(!s)throw new Error(`unknown rule <${o}>`);return this.cachedRules[r]=s(t)})};n0.prototype.resolveConfig=function(o){const{pkg:t,configName:n}=this.parseConfigName(o),a=`${t}-${n}`,r=this.cachedConfigs[a];return r?Promise.resolve(r):Promise.resolve(this.resolver.resolveConfig(t,n)).then(i=>{if(!i)throw new Error(`unknown config <${o}>`);return this.cachedConfigs[a]=this.normalizeConfig(i,t)})};n0.prototype.resolveRules=function(o){return this.resolveConfiguredRules(o).then(t=>{const r=Object.entries(t).map(([i,s])=>{const{category:l,config:c}=this.parseRuleValue(s);return{name:i,category:l,config:c}}).filter(i=>i.category!=="off").map(i=>{const{name:s,config:l}=i;return this.resolveRule(s,l).then(function(c){return{...i,rule:c}})});return Promise.all(r)})};n0.prototype.resolveConfiguredRules=function(o){let t=o.extends;return typeof t=="string"&&(t=[t]),typeof t>"u"&&(t=[]),Promise.all(t.map(n=>this.resolveConfig(n).then(a=>this.resolveConfiguredRules(a)))).then(n=>{const a=this.normalizeConfig(o,"bpmnlint").rules;return[...n,a].reduce((i,s)=>({...i,...s}),{})})};n0.prototype.lint=function(o,t){return t=t||this.config,this.resolveRules(t).then(n=>{const a={};return n.forEach(r=>{const{name:i}=r,s=this.applyRule(o,r);s.length&&(a[i]=s)}),a})};n0.prototype.parseRuleValue=function(o){let t,n;return Array.isArray(o)?(t=o[0],n=o[1]):(t=o,n={}),typeof t=="string"&&(t=t.toLowerCase()),t=dm[t]||t,{config:n,category:t}};n0.prototype.parseRuleName=function(o,t="bpmnlint"){const n=/^(?:(?:(@[^/]+)\/)?([^@]{1}[^/]*)\/)?([^/]+)$/.exec(o);if(!n)throw new Error(`unparseable rule name <${o}>`);const[a,r,i,s]=n;return i?{pkg:`${r?r+"/":""}${r2(i)}`,ruleName:s}:{pkg:t,ruleName:s}};n0.prototype.parseConfigName=function(o){const t=/^(?:(?:plugin:(?:(@[^/]+)\/)?([^@]{1}[^/]*)\/)|bpmnlint:)([^/]+)$/.exec(o);if(!t)throw new Error(`unparseable config name <${o}>`);const[n,a,r,i]=t;return r?{pkg:`${a?a+"/":""}${r2(r)}`,configName:i}:{pkg:"bpmnlint",configName:i}};n0.prototype.getSimplePackageName=function(o){const t=/^(?:(@[^/]+)\/)?([^/]+)$/.exec(o);if(!t)throw new Error(`unparseable package name <${o}>`);const[n,a,r]=t;return`${a?a+"/":""}${fm(r)}`};n0.prototype.normalizeConfig=function(o,t){const n=o.rules||{},a=Object.keys(n).reduce((r,i)=>{const s=n[i],{pkg:l,ruleName:c}=this.parseRuleName(i,t),u=l==="bpmnlint"?c:`${this.getSimplePackageName(l)}/${c}`;return r[u]=s,r},{});return{...o,rules:a}};function r2(o){return o==="bpmnlint"?"bpmnlint":o.startsWith("bpmnlint-plugin-")?o:`bpmnlint-plugin-${o}`}function fm(o){return o.startsWith("bpmnlint-plugin-")?o.substring(16):o}const hm=mm;var vm={Linter:hm};function gm(o){return o!=null}function bm(o){return Object.prototype.toString.call(o).slice(8,-1).toLowerCase()}const ym=o=>Object.prototype.toString.call(o),Em=o=>ym(o)==="[object Object]";function wm(o){return o?o.charAt(0).toUpperCase()+o.slice(1):""}function En(o,t,n){if(!n)return o;const a=r=>{const i=[];return r.forEach(s=>{var l;if(((l=s[t])==null?void 0:l.toLowerCase().indexOf(n.toLowerCase()))>-1)i.push({...s});else if(s.children){const c=a(s.children);c.length&&i.push({...s,children:c})}}),i};return a(o)}const i2="__bpmn-designer__";function s2(o){const t=window.localStorage.getItem(`${i2}${o}`);return t?JSON.parse(t):null}function mr(o,t){window.localStorage.setItem(`${i2}${o}`,JSON.stringify(t||""))}const R1=/process((?:[^>]*\s+[^>]*)*)id="([^"]*)"((?:[^>]*\s+[^>]*)*)name="([^"]*)"((?:[^>]*\s+[^>]*)*)\/?>/g,I1=/process((?:[^>]*\s+[^>]*)*)id="([^"]*)"((?:[^>]*\s+[^>]*)*)>/g,O1=/BPMNPlane((?:[^>]*\s+[^>]*)*)bpmnElement="([^"]*)"((?:[^>]*\s+[^>]*)*)>/g,Cm=/participant((?:[^>]*\s+[^>]*)*)processRef="([^"]*)"((?:[^>]*\s+[^>]*)*)>/g;function _m(o,t){if(!o||!o.length)return t;let n=t;if(t.includes("collaboration")){const a=o.length,r=[...t.matchAll(Cm)];for(let i=0;i<a;i++){const{id:s,name:l}=o[i];if(r[i]){const c=r[i][2],u=new RegExp(`"${c}"`,"g");n=n.replace(u,`"${s}"`)}else break}}else{const{id:a,name:r}=o[0];R1.test(t)?n=t.replace(R1,`process$1id="${a}"$3name="${r}"$5>`).replace(O1,`BPMNPlane$1bpmnElement="${a}"$3>`):I1.test(t)&&(n=t.replace(I1,`process$1id="${a}" name="${r}"$3>`).replace(O1,`BPMNPlane$1bpmnElement="${a}"$3>`))}return n}const Nm=Math.max,Sm=Math.min;function Ae(o,t){let n,a,r,i,s,l,c=0,u=!1,d=!1,p=!0;const m=o.delay||0;Em(o)&&(u=!!o.leading,d="maxWait"in o,r=d?Nm(o.maxWait||0,m):0,p="trailing"in o?!!o.trailing:p);function f(E){const w=n,b=a;return n=a=void 0,c=E,i=t.apply(b,w),i}function h(E){return c=E,s=setTimeout(C,m),u?f(E):i}function y(E){const w=E-l,b=E-c,S=m-w;return d?Sm(S,r-b):S}function g(E){const w=E-l,b=E-c;return l===void 0||w>=m||w<0||d&&b>=r}function C(){const E=Date.now();if(g(E))return x(E);s=setTimeout(C,y(E))}function x(E){return s=void 0,p&&n?f(E):(n=a=void 0,i)}function D(){s!==void 0&&clearTimeout(s),c=0,n=l=a=s=void 0}function _(){return s===void 0?i:x(Date.now())}function T(...E){const w=Date.now(),b=g(w);if(n=E,a=this,l=w,b){if(s===void 0)return h(l);if(d)return s=setTimeout(C,m),f(l)}return s===void 0&&(s=setTimeout(C,m)),i}return T.cancel=D,T.flush=_,T}const Tm=500,$1={resolver:{resolveRule:function(){throw new Error},resolveConfig:function(){throw new Error}},config:{}};class El{constructor(t,n,a,r,i,s){H(this,"_modeler");H(this,"_canvas");H(this,"_elementRegistry");H(this,"_eventBus");H(this,"_translate");H(this,"_issues");H(this,"_active");H(this,"_linterConfig");H(this,"_issuesCount");this._modeler=t,this._canvas=n,this._elementRegistry=r,this._eventBus=i,this._translate=s,this._active=a&&a.active||!1,this._linterConfig=$1,this._issues={},this._issuesCount={error:0,warn:0,info:0};const l=Ae({delay:0,trailing:!0},()=>this.update());i.on(["import.done","linting.configChanged","linting.toggle"],Tm,()=>l()),i.on("elements.changed",100,()=>l()),i.on("linting.toggle",u=>{u.active||this._clearIssues()}),i.on("diagram.clear",()=>{this._clearIssues()});const c=a&&a.bpmnlint;c&&i.once("diagram.init",()=>{if(this.getLinterConfig()===$1)try{this.setLinterConfig(c)}catch{console.error("[bpmnlint] Invalid lint rules configured. ")}})}setLinterConfig(t){if(!t||!t.config||!t.resolver)throw new Error("Expected linterConfig = { config, resolver }");this._linterConfig=t,this._eventBus.fire("linting.configChanged")}getLinterConfig(){return this._linterConfig}_formatIssues(t){this._clearIssuesCount();let n=[];for(const i in t)t[i].forEach(s=>{s.rule=i,s.category==="error"&&this._issuesCount.error++,s.category==="warn"&&this._issuesCount.warn++,s.category==="info"&&this._issuesCount.info++,n.push(s)});const a=this._elementRegistry.filter(i=>z.is(i,"bpmn:Participant")),r=a.map(i=>i.businessObject);return n=n.map(i=>{const s=this._elementRegistry.get(i.id);if(s)i.name=s.businessObject.name;else{i.isChildIssue=!0,i.actualElementId=i.id;const l=r.filter(c=>c.processRef&&c.processRef.id&&c.processRef.id===i.id);i.id=l.length?l[0].id:this._canvas.getRootElement().id,i.name=l.length?l[0].name:this._canvas.getRootElement().name}return i}),W4(n,i=>i.id)}_updateIssuesMarker(t,n){const a=this._canvas,r=this._elementRegistry;for(const i in t)if(!n[i]){t[i];const s=r.get(i);s&&a.removeMarker(s,"lint_has-error")}for(const i in n){t[i]||n[i];const s=r.get(i),l=s.type.split(":")[1];s&&!a.hasMarker(s,"lint_has-error")&&a.addMarker(s,"lint_has-error"),l&&!a.hasMarker(s,l)&&a.addMarker(s,l)}}_clearIssuesCount(){this._issuesCount={error:0,warn:0,info:0}}_clearIssues(){this._issues={},this._clearIssuesCount()}lint(){const t=this._modeler.getDefinitions();return new vm.Linter(this._linterConfig).lint(t)}async update(){if(!this._modeler.getDefinitions())return;const n=await this.lint(),a=this._formatIssues(n);this._updateIssuesMarker(this._issues,a),this._issues=a,this._eventBus.fire("bpmn-linting.completed",{issues:a,count:this._issuesCount})}}H(El,"$inject");El.$inject=["bpmnjs","canvas","config.linting","elementRegistry","eventBus","translate"];const km={__init__:["bpmnLinting"],bpmnLinting:["type",El]},xm=["append-task","append-rule-task","create-task","create-rule-task"];class l2 extends A4{constructor(n,a,r){super(n,a,r);H(this,"_current");this._current=null}_render(){const{entries:n}=this._current;for(const a in n)n[a].rank=xm.includes(a)?-1:1;super._render()}}l2.$inject=["config.popupMenu","eventBus","canvas"];const Vm={__init__:["popupMenu"],popupMenu:["type",l2]},Am="Flowable",Dm="http://flowable.org/bpmn",Rm="flowable",Im={tagAlias:"lowerCase"},Om=[],$m=[{name:"Definitions",isAbstract:!0,extends:["bpmn:Definitions"],properties:[{name:"diagramRelationId",isAttr:!0,type:"String"}]},{name:"InOutBinding",superClass:["Element"],isAbstract:!0,properties:[{name:"source",isAttr:!0,type:"String"},{name:"sourceExpression",isAttr:!0,type:"String"},{name:"target",isAttr:!0,type:"String"},{name:"businessKey",isAttr:!0,type:"String"},{name:"local",isAttr:!0,type:"Boolean",default:!1},{name:"variables",isAttr:!0,type:"String"}]},{name:"In",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity","bpmn:SignalEventDefinition"]}},{name:"Out",superClass:["InOutBinding"],meta:{allowedIn:["bpmn:CallActivity"]}},{name:"AsyncCapable",isAbstract:!0,extends:["bpmn:Activity","bpmn:Gateway","bpmn:Event"],properties:[{name:"async",isAttr:!0,type:"Boolean",default:!1},{name:"asyncBefore",isAttr:!0,type:"Boolean",default:!1},{name:"asyncAfter",isAttr:!0,type:"Boolean",default:!1},{name:"exclusive",isAttr:!0,type:"Boolean",default:!0}]},{name:"Scope",extends:["bpmn:Signal"],properties:[{name:"scope",isAttr:!0,type:"String"}]},{name:"ErrorEventDefinitionExtension",isAbstract:!0,extends:["bpmn:ErrorEventDefinition"],properties:[{name:"errorCodeVariable",isAttr:!0,type:"String"},{name:"errorMessageVariable",isAttr:!0,type:"String"},{name:"errorVariableLocalScope",isAttr:!0,type:"Boolean"},{name:"errorVariableTransient",isAttr:!0,type:"Boolean"}]},{name:"ErrorEventDefinition",superClass:["bpmn:ErrorEventDefinition","Element"],properties:[{name:"expression",isAttr:!0,type:"String"}],meta:{allowedIn:["bpmn:ServiceTask"]}},{name:"Error",isAbstract:!0,extends:["bpmn:Error"],properties:[{name:"flowable:errorMessage",isAttr:!0,type:"String"}]},{name:"FormSupported",isAbstract:!0,extends:["bpmn:StartEvent","bpmn:UserTask"],properties:[{name:"formKey",isAttr:!0,type:"String"}]},{name:"Initiator",isAbstract:!0,extends:["bpmn:StartEvent"],properties:[{name:"initiator",isAttr:!0,type:"String"}]},{name:"ScriptTask",isAbstract:!0,extends:["bpmn:ScriptTask"],properties:[{name:"resultVariable",isAttr:!0,type:"String"},{name:"autoStoreVariables",isAttr:!0,type:"Boolean"},{name:"resource",isAttr:!0,type:"String"}]},{name:"Process",isAbstract:!0,extends:["bpmn:Process"],properties:[{name:"candidateStarterGroups",isAttr:!0,type:"String"},{name:"candidateStarterUsers",isAttr:!0,type:"String"}]},{name:"FormalExpression",isAbstract:!0,extends:["bpmn:FormalExpression"],properties:[{name:"resource",isAttr:!0,type:"String"}]},{name:"Assignable",extends:["bpmn:UserTask"],properties:[{name:"assignee",isAttr:!0,type:"String"},{name:"candidateUsers",isAttr:!0,type:"String"},{name:"candidateGroups",isAttr:!0,type:"String"},{name:"dueDate",isAttr:!0,type:"String"},{name:"priority",isAttr:!0,type:"String"}]},{name:"CallActivity",extends:["bpmn:CallActivity"],properties:[{name:"inheritVariables",isAttr:!0,type:"Boolean"},{name:"calledElementType",isAttr:!0,type:"String"},{name:"processInstanceName",isAttr:!0,type:"String"}]},{name:"ServiceTaskLike",extends:["bpmn:ServiceTask","bpmn:BusinessRuleTask","bpmn:SendTask","bpmn:MessageEventDefinition"],properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"resultVariable",isAttr:!0,type:"String"}]},{name:"DmnCapable",extends:["bpmn:BusinessRuleTask"],properties:[{name:"decisionRef",isAttr:!0,type:"String"}]},{name:"ExternalCapable",extends:["flowable:ServiceTaskLike"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"topic",isAttr:!0,type:"String"}]},{name:"TaskPriorized",extends:["bpmn:Process","flowable:ExternalCapable"],properties:[{name:"taskPriority",isAttr:!0,type:"String"}]},{name:"Properties",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"values",type:"Property",isMany:!0}]},{name:"Property",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"value",type:"String",isAttr:!0}]},{name:"Connector",superClass:["Element"],meta:{allowedIn:["flowable:ServiceTaskLike"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"}]},{name:"InputOutput",superClass:["Element"],meta:{allowedIn:["bpmn:FlowNode","flowable:Connector"]},properties:[{name:"inputOutput",type:"InputOutput"},{name:"connectorId",type:"String"},{name:"inputParameters",isMany:!0,type:"InputParameter"},{name:"outputParameters",isMany:!0,type:"OutputParameter"}]},{name:"InputOutputParameter",properties:[{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"InputOutputParameterDefinition",isAbstract:!0},{name:"List",superClass:["InputOutputParameterDefinition"],properties:[{name:"items",isMany:!0,type:"InputOutputParameterDefinition"}]},{name:"Map",superClass:["InputOutputParameterDefinition"],properties:[{name:"entries",isMany:!0,type:"Entry"}]},{name:"Entry",properties:[{name:"key",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"},{name:"definition",type:"InputOutputParameterDefinition"}]},{name:"Value",superClass:["Element"],properties:[{name:"id",isAttr:!0,type:"String"},{name:"name",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Script",superClass:["InputOutputParameterDefinition"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"resource",isAttr:!0,type:"String"},{name:"value",isBody:!0,type:"String"}]},{name:"Field",superClass:["Element"],meta:{allowedIn:["flowable:ServiceTaskLike","flowable:ExecutionListener","flowable:TaskListener"]},properties:[{name:"name",isAttr:!0,type:"String"},{name:"expression",type:"String"},{name:"stringValue",isAttr:!0,type:"String"},{name:"string",type:"String"}]},{name:"InputParameter",superClass:["InputOutputParameter"]},{name:"OutputParameter",superClass:["InputOutputParameter"]},{name:"Collectable",isAbstract:!0,extends:["bpmn:MultiInstanceLoopCharacteristics"],superClass:["flowable:AsyncCapable"],properties:[{name:"collection",isAttr:!0,type:"String"},{name:"elementVariable",isAttr:!0,type:"String"}]},{name:"FailedJobRetryTimeCycle",superClass:["Element"],meta:{allowedIn:["flowable:AsyncCapable","bpmn:MultiInstanceLoopCharacteristics"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"ExecutionListener",superClass:["Element"],meta:{allowedIn:["bpmn:Task","bpmn:ServiceTask","bpmn:UserTask","bpmn:BusinessRuleTask","bpmn:ScriptTask","bpmn:ReceiveTask","bpmn:ManualTask","bpmn:ExclusiveGateway","bpmn:SequenceFlow","bpmn:ParallelGateway","bpmn:InclusiveGateway","bpmn:EventBasedGateway","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:EndEvent","bpmn:BoundaryEvent","bpmn:CallActivity","bpmn:SubProcess","bpmn:Process"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0}]},{name:"TaskListener",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"event",isAttr:!0,type:"String"},{name:"script",type:"Script"},{name:"fields",type:"Field",isMany:!0},{name:"id",type:"String",isAttr:!0},{name:"eventDefinitions",type:"bpmn:TimerEventDefinition",isMany:!0}]},{name:"EventListener",superClass:["Element"],meta:{allowedIn:["bpmn:Process"]},properties:[{name:"events",isAttr:!0,type:"String"},{name:"expression",isAttr:!0,type:"String"},{name:"class",isAttr:!0,type:"String"},{name:"delegateExpression",isAttr:!0,type:"String"},{name:"throwEvent",isAttr:!0,type:"String"},{name:"entityType",isAttr:!0,type:"String"},{name:"signalName",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"},{name:"messageName",isAttr:!0,type:"String"}]},{name:"FormProperty",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"id",type:"String",isAttr:!0},{name:"name",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"required",type:"String",isAttr:!0},{name:"readable",type:"String",isAttr:!0},{name:"writable",type:"String",isAttr:!0},{name:"variable",type:"String",isAttr:!0},{name:"expression",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"default",type:"String",isAttr:!0},{name:"values",type:"Value",isMany:!0}]},{name:"FormData",superClass:["Element"],meta:{allowedIn:["bpmn:StartEvent","bpmn:UserTask"]},properties:[{name:"fields",type:"FormField",isMany:!0},{name:"businessKey",type:"String",isAttr:!0}]},{name:"FormField",superClass:["Element"],properties:[{name:"id",type:"String",isAttr:!0},{name:"label",type:"String",isAttr:!0},{name:"type",type:"String",isAttr:!0},{name:"datePattern",type:"String",isAttr:!0},{name:"defaultValue",type:"String",isAttr:!0},{name:"properties",type:"Properties"},{name:"validation",type:"Validation"},{name:"values",type:"Value",isMany:!0}]},{name:"Validation",superClass:["Element"],properties:[{name:"constraints",type:"Constraint",isMany:!0}]},{name:"Constraint",superClass:["Element"],properties:[{name:"name",type:"String",isAttr:!0},{name:"config",type:"String",isAttr:!0}]},{name:"ConditionalEventDefinitionExtension",isAbstract:!0,extends:["bpmn:ConditionalEventDefinition"],properties:[{name:"variableName",isAttr:!0,type:"String"},{name:"variableEvents",isAttr:!0,type:"String"}]},{name:"AssigneeType",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"MultiCompletionCondition",superClass:["Element"],meta:{allowedIn:["bpmn:Activity"]},properties:[{name:"type",type:"String",isAttr:!0},{name:"conditionType",type:"String",isAttr:!0},{name:"num",type:"Number",isAttr:!0},{name:"body",type:"String",isBody:!0}]},{name:"IdmAssignee",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"IdmCandidateUsers",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask","bpmn:Process"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"IdmCandidateGroups",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask","bpmn:Process"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"NextSequenceFlow",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"NextUser",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"ModelBpmnExtension",superClass:["Element"],meta:{allowedIn:["bpmn:UserTask"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"ProcessNameExp",superClass:["Element"],meta:{allowedIn:["bpmn:Process"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"NodeFormExp",superClass:["Element"],meta:{allowedIn:["bpmn:Event","bpmn:UserTask"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"NodeFormType",superClass:["Element"],meta:{allowedIn:["bpmn:Event","bpmn:UserTask"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"StaticAssigneeVariables",superClass:["Element"],meta:{allowedIn:["bpmn:Event","bpmn:UserTask"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"MultiInstanceVariables",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"ServiceTask",extends:["bpmn:ServiceTask"],properties:[{name:"parallelInSameTransaction",type:"Boolean",isAttr:!0}]},{name:"TimeDate",superClass:["Element"],meta:{allowedIn:["bpmn:BoundaryEvent","bpmn:TimerEventDefinition","bpmn:UserTask"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"BoundaryEvent",extends:["bpmn:BoundaryEvent"],properties:[{name:"timerEventDefinition",isBody:!0,type:"flowable:TimerEventDefinition"},{name:"cancelActivity",isAttr:!0,type:"Boolean",redefines:"bpmn:BoundaryEvent#cancelActivity"}]},{name:"TimerEventDefinition",superClass:["TimerEventDefinition"],meta:{allowedIn:["bpmn:BoundaryEvent","bpmn:TimerEventDefinition","bpmn:UserTask"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"TimeDuration",superClass:["Element"],meta:{allowedIn:["bpmn:BoundaryEvent","bpmn:TimerEventDefinition","bpmn:UserTask"]},properties:[{name:"body",isBody:!0,type:"String"}]},{name:"TimeCycle",superClass:["Element"],meta:{allowedIn:["bpmn:BoundaryEvent","bpmn:TimerEventDefinition","flowable:endDate","bpmn:UserTask"]},properties:[{name:"body",isBody:!0,type:"String"},{name:"endDate",isAttr:!0,type:"String"}]},{name:"SkipUserTask",extends:["bpmn:UserTask"],properties:[{name:"skipExpression",type:"String",isAttr:!0}]},{name:"TransferToUsers",superClass:["Element"],meta:{allowedIn:["bpmn:ServiceTask"]},properties:[{name:"body",type:"String",isBody:!0}]},{name:"FormFieldValidation",extends:["bpmn:UserTask","bpmn:StartEvent"],properties:[{name:"formFieldValidation",type:"String",isAttr:!0}]},{name:"DataObject",extends:["bpmn:DataObject"],meta:{allowedIn:["bpmn:Process","bpmn:SubProcess"]},properties:[{name:"itemSubjectRef",type:"String",isAttr:!0,redefines:"bpmn:DataObject#itemSubjectRef"}]},{name:"InterruptingStartEvent",extends:["bpmn:StartEvent"],properties:[{name:"isInterrupting",isAttr:!0,type:"Boolean",redefines:"bpmn:StartEvent#isInterrupting"}]},{name:"VariableListenerEventDefinition",superClass:["Element"],meta:{allowedIn:["*"]},properties:[{name:"variableName",type:"String",isAttr:!0},{name:"variableChangeType",type:"String",isAttr:!0}]},{name:"TerminateEventDefinition",extends:["bpmn:TerminateEventDefinition"],properties:[{name:"terminateAll",isAttr:!0,type:"Boolean"}]},{name:"AdHoc",extends:["bpmn:AdHocSubProcess"],properties:[{name:"cancelRemainingInstances",isAttr:!0,type:"Boolean",redefines:"bpmn:AdHocSubProcess#cancelRemainingInstances"}]}],Lm=[],Bm={name:Am,uri:Dm,prefix:Rm,xml:Im,associations:Om,types:$m,emumerations:Lm},Pm=[n4,o4.CreateAppendAnythingModule,a4,a5,cp,np,up,Vp,Op,Vm,km];function c2(o){return z.is(o,"flowable:ServiceTaskLike")}function Mm(o){return z.is(o,"flowable:DmnCapable")}function Fm(o){return z.is(o,"flowable:ExternalCapable")}function u2(o){let t=o;if(z.is(t,"bpmn:IntermediateThrowEvent")||z.is(t,"bpmn:EndEvent")){const n=hr(t);n&&(t=n)}return c2(t)&&z.getBusinessObject(t)}function jm(o){const t=p2(o)||u2(o);return t?Mm(t)&&typeof t.get("flowable:decisionRef")<"u"?"dmn":c2(t)&&Lt(t,"flowable:Connector").length?"connector":Fm(t)&&t.get("flowable:type")==="external"?"external":typeof t.get("script")<"u"?"script":d2(o):void 0}function d2(o){const t=p2(o)||u2(o);if(!t)return;if(typeof t.get("flowable:class")<"u")return"class";if(typeof t.get("flowable:expression")<"u")return"expression";if(typeof t.get("flowable:delegateExpression")<"u")return"delegateExpression"}function p2(o){if(t0.isAny(o,["flowable:ExecutionListener","flowable:TaskListener"]))return o}function m2(o){return t0.isAny(o,["bpmn:StartEvent","bpmn:BoundaryEvent","bpmn:EndEvent"])&&!!fr(o)}function f2(o){return t0.isAny(o,["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"])&&!!wl(o)}function h2(o){return z.is(o,"bpmn:ReceiveTask")||t0.isAny(o,["bpmn:StartEvent","bpmn:EndEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:IntermediateCatchEvent"])&&!!hr(o)}function v2(o){return z.is(o,"bpmn:Event")&&!!Cl(o)}function g2(o){return z.is(o,"bpmn:Event")&&!!Ya(o)}function b2(o){return z.is(o,"bpmn:Event")&&!!_l(o)}function qm(o){return z.is(o,"bpmn:Event")&&!!Ja(o)}function y2(o){return z.is(o,"bpmn:Event")&&!!Yn(o)}function fr(o){return rn(o,"bpmn:ErrorEventDefinition")}function Um(o){if(!o)return;if(typeof o.get("timeDate")<"u")return"timeDate";if(typeof o.get("timeCycle")<"u")return"timeCycle";if(typeof o.get("timeDuration")<"u")return"timeDuration"}function wl(o){return rn(o,"bpmn:TimerEventDefinition")}function rn(o,t){return(z.getBusinessObject(o).get("eventDefinitions")||[]).find(r=>z.is(r,t))}function hr(o){return z.is(o,"bpmn:ReceiveTask")?z.getBusinessObject(o):rn(o,"bpmn:MessageEventDefinition")}function Cl(o){return rn(o,"bpmn:SignalEventDefinition")}function Ya(o){return rn(o,"bpmn:ConditionalEventDefinition")}function _l(o){return rn(o,"bpmn:EscalationEventDefinition")}function Ja(o){return rn(o,"bpmn:TerminateEventDefinition")}function Yn(o){return Lt(z.getBusinessObject(o),"flowable:VariableListenerEventDefinition")[0]}function E2(o){const t=_l(o);return t&&t.get("escalationRef")}function w2(o){const t=Cl(o);return t&&t.get("signalRef")}function C2(o){const t=hr(o);return t&&t.get("messageRef")}function Hm(o){const t=fr(o);return t&&t.get("errorRef")}function Zm(o){const t=Ya(o);return t&&t.get("condition")}const L1=[{label:"字符串",value:"xsd:string"},{label:"布尔值",value:"xsd:boolean"},{label:"时间",value:"xsd:datetime"},{label:"小数",value:"xsd:double"},{label:"整数",value:"xsd:int"},{label:"长整数",value:"xsd:long"}],zm=()=>{mr("panel-data",{})},lo=()=>s2("panel-data")||{},Gm=(o,t)=>{const n=lo();n[o]=t,mr("panel-data",n)};function Km(){function o(t,n){var i,s;if(!m2(t))return;const a=(i=fr(t))==null?void 0:i.errorRef;if(!a){n.report(t.id,"Please select an error event");return}(s=(lo().globalEvents||{}).error)!=null&&s[a.id]||n.report(t.id,"An undefined error event is configured")}return{check:o}}function Wm(){function o(t,n){var i;if(!h2(t))return;const a=C2(t);if(!a){n.report(t.id,"Please select a message event");return}(i=(lo().globalEvents||{}).message)!=null&&i[a.id]||n.report(t.id,"An undefined message event is configured")}return{check:o}}function Ym(){function o(t,n){var i;if(!v2(t))return;const a=w2(t);if(!a){n.report(t.id,"Please select a signal event");return}(i=(lo().globalEvents||{}).signal)!=null&&i[a.id]||n.report(t.id,"An undefined signal event is configured")}return{check:o}}function Jm(){function o(t,n){var i;if(!b2(t))return;const a=E2(t);if(!a){n.report(t.id,"Please select an escalation event");return}(i=(lo().globalEvents||{}).escalation)!=null&&i[a.id]||n.report(t.id,"An undefined escalation event is configured")}return{check:o}}function Xm(){function o(t,n){var r,i,s;if(!f2(t))return;const a=wl(t);(!a||!((r=a.timeDate)!=null&&r.body)&&!((i=a.timeCycle)!=null&&i.body)&&!((s=a.timeDuration)!=null&&s.body))&&n.report(t.id,"Please configure time events")}return{check:o}}function Qm(){function o(t,n){if(!g2(t))return;const a=Zm(t);if(!a||!a.get("body")){n.report(t.id,"Please configure completion conditions");return}}return{check:o}}const e6=["bpmn:Activity","bpmn:ExclusiveGateway","bpmn:InclusiveGateway","bpmn:ComplexGateway"];function B1(o){const t=z.getBusinessObject(o);if(z.is(t,"bpmn:SequenceFlow"))return t.get("conditionExpression");if(P1(t))return P1(t).get("condition")}function t6(o){return t0.isAny(o,e6)}function P1(o){return z.is(o,"bpmn:Event")?rn(o,"bpmn:ConditionalEventDefinition"):!1}const n6=["bpmn:Activity","bpmn:Event","bpmn:Gateway","bpmn:SequenceFlow","bpmn:Process","bpmn:Participant"],o6=["bpmn:UserTask","bpmn:ScriptTask","bpmn:ServiceTask","bpmn:WebServiceTask","bpmn:BusinessRuleTask","bpmn:EmailTask","bpmn:ManualTask","bpmn:SendTask","bpmn:ReceiveTask","bpmn:SubProcess","bpmn:CallActivity"];function a6(o){return t0.isAny(o,o6)?!(z.is(o,"bpmn:Participant")&&!o.businessObject.processRef):!1}function r6(o){return t0.isAny(o,n6)?!(z.is(o,"bpmn:Participant")&&z.is(o,"bpmn:Collaboration")&&!o.businessObject.processRef):!1}function _2(o){return z.is(o,"bpmn:UserTask")}function i6(o){return z.is(o,"bpmn:ScriptTask")}function s6(o){return z.is(o,"bpmn:ServiceTask")}function l6(o){return z.is(o,"bpmn:CallActivity")}function c6(o){return z.is(o,"bpmn:SequenceFlow")&&t6(o.source)}function u6(o){return z.is(o,"bpmn:StartEvent")&&!z.is(o.parent,"bpmn:SubProcess")&&vr(o)||z.is(o,"bpmn:UserTask")}function vr(o){return!o.businessObject.eventDefinitions||!o.businessObject.eventDefinitions.length}function d6(o){return t0.isAny(o,["bpmn:Process","bpmn:SubProcess","bpmn:Participant"])}function p6(o){return t0.isAny(o,["bpmn:Process","bpmn:Participant"])}function m6(){function o(t,n){!t||!_2(t)||!t.get("assignee")&&!t.get("candidateUsers")&&!t.get("candidateGroups")&&n.report(t.id,"Please configure the approver or candidate groups")}return{check:o}}const f6=["bpmn:ExclusiveGateway"];function h6(){function o(t,n){var a;!z.is(t,"bpmn:SequenceFlow")||!t.sourceRef||!z.isAny(t.sourceRef,f6)||t.sourceRef.default!==t&&!((a=t.get("conditionExpression"))!=null&&a.get("body"))&&n.report(t.id,"Please configure the conditions")}return{check:o}}function Pe(o,t,n,a){const i=o.get("bpmnFactory").create(t,n);for(const s in n)n[s]===""||n[s];return a&&(i.$parent=a),i}function Ve(o,t,n,a){const r=`flowable:${t}`,s=o.get("bpmnFactory").create(r,n);return a&&(s.$parent=a),s}function wn(o){return new T0([32,32,1]).nextPrefixed(`${o}_`)}function on(o){let t=o;for(;t.$parent;)t=t.$parent;return t}function Jo(o,t){return(o||[]).filter(a=>z.is(a,t))}function v6(o,t){const n=on(o);return Jo(n.get("rootElements"),t)}function gr(o,t,n){return v6(o,t).find(r=>r.id===n)}const g6=o=>Object.prototype.toString.call(o);function b6(o){return g6(o).slice(8,-1).toLowerCase()}const y6=Array.isArray||(o=>b6(o)==="array");function E6(o){return y6(o)&&o.length>0}function w6(o,...t){const n=Array.from({length:t.length+1}).fill(null).map(()=>[]);return o.forEach((a,r,i)=>{let s=0;for(const l of t){if(l(a,r,i)){n[s].push(a);return}s+=1}n[s].push(a)}),n}function N2(o,t={}){const n=[],{children:a="children",depth:r=Number.POSITIVE_INFINITY,currentDepth:i=0,removeChildren:s=!1}=t;for(const l of o)s&&Reflect.deleteProperty(l,a),n.push(l),i<r&&E6(l[a])&&n.push(...N2(l[a],{children:a,depth:r,currentDepth:i+1,removeChildren:s}));return n}function C6(){function o(t,n){var r;if(!z.is(t,"bpmn:BoundaryEvent"))return;if((r=t.get("eventDefinitions"))==null?void 0:r.find(i=>i.$type==="bpmn:CompensateEventDefinition")){const i=on(t).rootElements||[],l=N2(i,{children:"flowElements"}).reduce((c,u)=>(c.push(...(u==null?void 0:u.artifacts)||[]),c),[]);(!l.length||!l.find(c=>c.sourceRef===t))&&n.report(t.id,"Please set up the compensation handler")}}return{check:o}}function _6(){function o(t,n){if(!y2(t))return;const a=Yn(t);a!=null&&a.get("variableName")||n.report(t.id,"Please configure the parameter name")}return{check:o}}function N6(){function o(a){return Lt(a,"flowable:Field")}function t(a,r,i={}){const s=r.reduce((u,d)=>{const[p,m="string"]=d.split(".");return u[p]=m,u},{}),l=!0;let c=r.length;for(const u of a){const d=u.get("name");if(s[d]&&(c--,i[d]&&!i[d](u)||!u.get(s[d])))return!1}return c===0&&l}function n(a,r){if(!a||!z.is(a,"bpmn:ServiceTask"))return;const i=a.get("type");if(!i){!a.get("class")&&!a.get("expression")&&!a.get("delegateExpression")&&r.report(a.id,"Please configure node type and expressions and Java class and delegate expressions");return}const s=o(a);switch(i){case"sc":!t(s,["serviceId","url","method"])&&r.report(a.id,"Please configure the service ID and request address and request method");return;case"copy":!t(s,["transferToUserNos"])&&r.report(a.id,"Please configure the CC persons");return;case"rest":!t(s,["requestUrl","requestMethod"])&&r.report(a.id,"Please configure the request address and request method");return;case"http":!t(s,["requestUrl","requestMethod"])&&r.report(a.id,"Please configure the request address and request method");return;case"mq":!t(s,["queue"])&&r.report(a.id,"Please configure the queue name");return;case"dmn":!t(s,["decisionTableReferenceKey"])&&r.report(a.id,"Please select a decision");return;case"mail":!t(s,["to.expression","subject","html.expression"])&&r.report(a.id,"Please configure the recipient, subject, and email content");return;case"shell":!t(s,["command"])&&r.report(a.id,"Please configure the shell command");return}}return{check:n}}function S6(){function o(t,n){!t||!z.is(t,"bpmn:ScriptTask")||(!t.get("script")||!t.get("scriptFormat"))&&n.report(t.id,"Please configure the script format and content")}return{check:o}}function T6(){function o(t,n){!t||!z.is(t,"bpmn:CallActivity")||(!t.get("calledElement")||!t.get("calledElementType")||!t.get("processInstanceName"))&&n.report(t.id,"Please select the instance to be called")}return{check:o}}const k6={"message-start-event-required":"error","signal-start-event-required":"error","escalation-start-event-required":"error","timer-start-event-required":"error","error-start-event-required":"error","variable-event-required":"error","conditional-start-event-required":"error","user-task-assignee-required":"error","sequence-flow-condition-required":"error","compensate-boundary-task-required":"error","service-task-config-required":"error","script-task-content-required":"error","call-activity-process-required":"error"},x6={"bpmnlint/message-start-event-required":Wm,"bpmnlint/signal-start-event-required":Ym,"bpmnlint/escalation-start-event-required":Jm,"bpmnlint/timer-start-event-required":Xm,"bpmnlint/error-start-event-required":Km,"bpmnlint/variable-event-required":_6,"bpmnlint/conditional-start-event-required":Qm,"bpmnlint/user-task-assignee-required":m6,"bpmnlint/sequence-flow-condition-required":h6,"bpmnlint/compensate-boundary-task-required":C6,"bpmnlint/service-task-config-required":N6,"bpmnlint/script-task-content-required":S6,"bpmnlint/call-activity-process-required":T6};class V6{constructor(){}resolveRule(t,n){const a=x6[t+"/"+n];if(!a)throw new Error("cannot resolve rule <"+t+"/"+n+">");return a}resolveConfig(t,n){throw new Error("cannot resolve config <"+n+"> in <"+t+">")}}const A6={linting:{active:!0,bpmnlint:{resolver:new V6,config:{rules:k6}}}},M1=o=>bm(o)==="array",jt=o=>!gm(o);var _e;let Ct=(_e=class{constructor(){}static _addListener(t,n,a,r){if(typeof n!="function")throw new TypeError("fn must be a function");n.context=a,n.once=!!r;const i=_e._events[t];return jt(i)?_e._events[t]=n:typeof i=="function"?_e._events[t]=[i,n]:M1(i)&&_e._events[t].push(n),_e}static addListener(t,n,a){return _e._addListener(t,n,a)}static hasListener(t,n){return _e._events[t]&&_e._events[t].indexOf&&_e._events[t].indexOf(n)>-1}static on(t,n,a){return _e.addListener(t,n,a)}static once(t,n,a){return _e._addListener(t,n,a,!0)}static emit(t,...n){if(jt(t))throw new Error("emit must receive at lease one argument");const a=_e._events[t];return jt(a)?!1:(typeof a=="function"?(a.call(a.context||null,...n),a.once&&_e.removeListener(t,a)):M1(a)&&a.map(r=>{r.call(r.context||null,...n),r.once&&_e.removeListener(t,r)}),!0)}static removeListener(t,n){if(jt(_e._events)||jt(t))return _e;if(typeof n!="function")throw new Error("fn must be a function");const a=_e._events[t];if(!a)return _e;if(typeof a=="function")a===n&&delete _e._events[t];else{const r=a.findIndex(i=>i===n);if(r===-1)return _e;r===0?a.shift():a.splice(r,1),a.length===1&&(_e._events[t]=a[0])}return _e}static removeAllListeners(t){if(jt(_e._events))return _e;jt(t)&&(_e._events=Object.create(null));const n=_e._events[t];return jt(n)||(Object.keys(_e._events).length===1?_e._events=Object.create(null):delete _e._events[t]),_e}static listeners(t){if(jt(_e._events))return[];const n=_e._events[t];return jt(n)?[]:typeof n=="function"?[n]:n.map(a=>a)}static listenerCount(t){if(jt(_e._events))return 0;const n=_e._events[t];return jt(n)?0:typeof n=="function"?1:n.length}static eventNames(){return jt(_e._events)?[]:Object.keys(_e._events)}},H(_e,"_events",{}),_e);function D6(o){const t=o.get("modeling");o.on("commandStack.shape.create.postExecute",400,({context:n})=>{const a=n.shape,r=a.type,i=a.businessObject.extensionElements;switch(r){case"bpmn:UserTask":const s=Pe(o,"flowable:AssigneeType",{body:"static"});i?t.updateModdleProperties(a,i,{values:[...i.values,s]}):t.updateModdleProperties(a,a.businessObject,{extensionElements:Pe(o,"bpmn:ExtensionElements",{values:[s]})});break;case"bpmn:StartEvent":a.businessObject.initiator=vr(a)?"initiator":void 0;break;case"bpmn:EndEvent":const l=Ja(a.businessObject);l&&(l.terminateAll=!1);break;case"bpmn:ServiceTask":if(a.businessObject.type==="dmn")if(i){const d={decisionTableReferenceKey:!0,decisionTableReferenceName:!0,fallbackToDefaultTenant:!0,decisionTaskThrowErrorOnNoHits:!0},p=i.values||[],m=[];for(const f of p){if(f.$type==="flowable:Field"&&d[f.name]){d[f.name]=!1,m.push(f);continue}m.push(f)}Object.keys(d).forEach(f=>{d[f]&&m.push(Ve(o,"Field",{name:f,string:f==="fallbackToDefaultTenant"||f==="decisionTaskThrowErrorOnNoHits"?"false":void 0}))}),t.updateModdleProperties(a,i,{values:m})}else{const d=[Ve(o,"Field",{name:"decisionTableReferenceKey"}),Ve(o,"Field",{name:"decisionTableReferenceName"}),Ve(o,"Field",{name:"fallbackToDefaultTenant",string:"false"}),Ve(o,"Field",{name:"decisionTaskThrowErrorOnNoHits",string:"false"})];t.updateModdleProperties(a,a.businessObject,{extensionElements:Pe(o,"bpmn:ExtensionElements",{values:d})})}break;case"bpmn:AdHocSubProcess":const u=a.businessObject.get("shape.businessObject");S0(u)&&(a.businessObject.cancelRemainingInstances=!0)}}),o.on("autoPlace.end",1e3,({source:n,shape:a})=>{switch(a.type){case"bpmn:UserTask":R6(n)&&(a.businessObject.skipExpression="${initiator == ''}",a.businessObject.assignee="${initiator}");break}})}function R6(o){return z.is(o,"bpmn:StartEvent")&&vr(o)}const I6=e.defineComponent({name:"BpmnDesigner",__name:"index",props:{xml:{type:String,default:void 0}},emits:["modeler-init","modeler-destroy","root-init"],setup(o,{expose:t,emit:n}){var m;const a=o,r=n,i=((m=s2("minimap"))==null?void 0:m.enabled)??!0,s=e.ref(void 0),l=e.shallowRef(),c=()=>{l.value=new t4({container:s.value,moddleExtensions:{flowable:Bm},additionalModules:Pm,...A6,keyboard:{bindTo:document},minimap:{open:i},gridLine:{gridLineOpacity:.1,gridLineStroke:1}}),D6(l.value),r("modeler-init",l.value),Ct.emit("modeler-init",l.value),d()},u=async f=>{try{l.value||c(),await l.value.importXML(f||a.xml||Ou(`process_${Date.now()}`)),l.value.get("canvas").zoom("fit-viewport","center");const y=l.value.get("toggleMode");l.value.on("element.click",5e3,()=>{if(y._active)return!1})}catch(h){console.error(h)}},d=()=>{l.value.on("import.done",750,function(){const h=l.value.get("canvas").getRootElement();let y=h.businessObject;const g=[];z.is(h,"bpmn:Collaboration")?h.children.forEach(C=>{z.is(C,"bpmn:Participant")&&g.push({id:C.businessObject.processRef.get("id"),name:C.businessObject.processRef.get("name")||""})}):g.push({id:y.get("id"),name:y.get("name")||""}),r("root-init",g)})},p=()=>{var f,h;Ct.emit("modeler-destroy",l.value),r("modeler-destroy",l.value),(f=l.value)==null||f.clear(),(h=l.value)==null||h.destroy(),l.value=void 0};return e.onMounted(()=>{c(),u(a.xml)}),e.onBeforeUnmount(()=>p()),t({initModeler:c,destroyModeler:p,createNewProcess:u}),(f,h)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"canvasEl",ref:s,class:"bpmn-designer"},[e.renderSlot(f.$slots,"default")],512))}}),O6=e.defineComponent({name:"BpmnIcon",inheritAttrs:!0,props:{name:{type:String,default:"bpmn-icon-process"},size:{type:Number,default:20},color:{type:String,default:"var(--color-text-1)"}},computed:{computedSize(){return{width:`${this.size}px`,height:`${this.size}px`}}}}),kn=(o,t)=>{const n=o.__vccOpts||o;for(const[a,r]of t)n[a]=r;return n},$6=["href","fill"];function L6(o,t,n,a,r,i){return e.openBlock(),e.createElementBlock("svg",{class:"bpmn-icon","aria-hidden":"true",style:e.normalizeStyle(o.computedSize)},[e.createElementVNode("use",{href:`#${o.name}`,fill:o.color},null,8,$6)],4)}const sn=kn(O6,[["render",L6]]),Ta={formatYear:"YYYY 年",formatMonth:"YYYY 年 MM 月",today:"今天",view:{month:"月",year:"年",week:"周",day:"日"},month:{long:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},short:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},week:{long:{self:"周",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日"},short:{self:"周",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",sunday:"日"}}},B6={locale:"zh-CN",empty:{description:"暂无数据"},drawer:{okText:"确定",cancelText:"取消"},popconfirm:{okText:"确定",cancelText:"取消"},modal:{okText:"确定",cancelText:"取消"},pagination:{goto:"前往",page:"页",countPerPage:"条/页",total:"共 {0} 条"},table:{okText:"确定",resetText:"重置"},upload:{start:"开始",cancel:"取消",delete:"删除",retry:"点击重试",buttonText:"点击上传",preview:"预览",drag:"点击或拖拽文件到此处上传",dragHover:"释放文件并开始上传",error:"上传失败"},calendar:Ta,datePicker:{view:Ta.view,month:Ta.month,week:Ta.week,placeholder:{date:"请选择日期",week:"请选择周",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",time:"请选择时间"},rangePlaceholder:{date:["开始日期","结束日期"],week:["开始周","结束周"],month:["开始月份","结束月份"],year:["开始年份","结束年份"],quarter:["开始季度","结束季度"],time:["开始时间","结束时间"]},selectTime:"选择时间",today:"今天",now:"此刻",ok:"确定"},image:{loading:"加载中"},imagePreview:{fullScreen:"全屏",rotateRight:"向右旋转",rotateLeft:"向左旋转",zoomIn:"放大",zoomOut:"缩小",originalSize:"原始尺寸"},typography:{copied:"已复制",copy:"复制",expand:"展开",collapse:"折叠",edit:"编辑"},form:{validateMessages:{required:"#{field} 是必填项",type:{string:"#{field} 不是合法的文本类型",number:"#{field} 不是合法的数字类型",boolean:"#{field} 不是合法的布尔类型",array:"#{field} 不是合法的数组类型",object:"#{field} 不是合法的对象类型",url:"#{field} 不是合法的 url 地址",email:"#{field} 不是合法的邮箱地址",ip:"#{field} 不是合法的 IP 地址"},number:{min:"`#{value}` 小于最小值 `#{min}`",max:"`#{value}` 大于最大值 `#{max}`",equal:"`#{value}` 不等于 `#{equal}`",range:"`#{value}` 不在 `#{min} ~ #{max}` 范围内",positive:"`#{value}` 不是正数",negative:"`#{value}` 不是负数"},array:{length:"`#{field}` 个数不等于 #{length}",minLength:"`#{field}` 个数最少为 #{minLength}",maxLength:"`#{field}` 个数最多为 #{maxLength}",includes:"#{field} 不包含 #{includes}",deepEqual:"#{field} 不等于 #{deepEqual}",empty:"`#{field}` 不是空数组"},string:{minLength:"字符数最少为 #{minLength}",maxLength:"字符数最多为 #{maxLength}",length:"字符数必须是 #{length}",match:"`#{value}` 不符合模式 #{pattern}",uppercase:"`#{value}` 必须全大写",lowercase:"`#{value}` 必须全小写"},object:{deepEqual:"`#{field}` 不等于期望值",hasKeys:"`#{field}` 不包含必须字段",empty:"`#{field}` 不是对象"},boolean:{true:"期望是 `true`",false:"期望是 `false`"}}},colorPicker:{history:"最近使用颜色",preset:"系统预设颜色",empty:"暂无"}};var br=Object.prototype.toString;function S2(o){return br.call(o)==="[object Array]"}function Jn(o){return br.call(o)==="[object Object]"}function F1(o){return br.call(o)==="[object String]"}function P6(o){return br.call(o)==="[object Function]"}function M6(o){return o==null||o===""}function F6(o){return S2(o)&&!o.length}var j6=function(o,t){var n=Object.assign({},o);return Object.keys(t||{}).forEach(function(a){var r=n[a],i=t==null?void 0:t[a];n[a]=Jn(r)?Object.assign(Object.assign({},r),i):i||r}),n},q6=function(o,t){for(var n=t.split("."),a=o,r=0;r<n.length;r++)if(a=a&&a[n[r]],a===void 0)return a;return a},z0="#{field} is not a #{type} type",T2={required:"#{field} is required",type:{ip:z0,email:z0,url:z0,string:z0,number:z0,array:z0,object:z0,boolean:z0},number:{min:"`#{value}` is not greater than `#{min}`",max:"`#{value}` is not less than `#{max}`",equal:"`#{value}` is not equal to `#{equal}`",range:"`#{value}` is not in range `#{min} ~ #{max}`",positive:"`#{value}` is not a positive number",negative:"`#{value}` is not a negative number"},string:{maxLength:"#{field} cannot be longer than #{maxLength} characters",minLength:"#{field} must be at least #{minLength} characters",length:"#{field} must be exactly #{length} characters",match:"`#{value}` does not match pattern #{pattern}",uppercase:"`#{value}` must be all uppercase",lowercase:"`#{value}` must be all lowercased"},array:{length:"#{field} must be exactly #{length} in length",minLength:"#{field} cannot be less than #{minLength} in length",maxLength:"#{field} cannot be greater than #{maxLength} in length",includes:"#{field} is not includes #{includes}",deepEqual:"#{field} is not deep equal with #{deepEqual}",empty:"#{field} is not an empty array"},object:{deepEqual:"#{field} is not deep equal to expected value",hasKeys:"#{field} does not contain required fields",empty:"#{field} is not an empty object"},boolean:{true:"Expect true but got `#{value}`",false:"Expect false but got `#{value}`"}},yr=function(t,n){var a=this;this.getValidateMsg=function(r,i){i===void 0&&(i={});var s=Object.assign(Object.assign({},i),{value:a.obj,field:a.field,type:a.type}),l=q6(a.validateMessages,r);return P6(l)?l(s):F1(l)?l.replace(/\#\{.+?\}/g,function(c){var u=c.slice(2,-1);if(u in s){if(Jn(s[u])||S2(s[u]))try{return JSON.stringify(s[u])}catch{return s[u]}return String(s[u])}return c}):l},Jn(n)&&F1(t)&&n.trim?this.obj=t.trim():Jn(n)&&n.ignoreEmptyString&&t===""?this.obj=void 0:this.obj=t,this.message=n.message,this.type=n.type,this.error=null,this.field=n.field||n.type,this.validateMessages=j6(T2,n.validateMessages)},Er={not:{configurable:!0},isRequired:{configurable:!0},end:{configurable:!0}};Er.not.get=function(){return this._not=!this._not,this};Er.isRequired.get=function(){if(M6(this.obj)||F6(this.obj)){var o=this.getValidateMsg("required");this.error={value:this.obj,type:this.type,requiredError:!0,message:this.message||(Jn(o)?o:(this._not?"[NOT MODE]:":"")+o)}}return this};Er.end.get=function(){return this.error};yr.prototype.addError=function(t){!this.error&&t&&(this.error={value:this.obj,type:this.type,message:this.message||(Jn(t)?t:(this._not?"[NOT MODE]:":"")+t)})};yr.prototype.validate=function(t,n){var a=this._not?t:!t;return a&&this.addError(n),this};yr.prototype.collect=function(t){t&&t(this.error)};Object.defineProperties(yr.prototype,Er);const ka={formatYear:"YYYY",formatMonth:"MMM YYYY",today:"Today",view:{month:"Month",year:"Year",week:"Week",day:"Day"},month:{long:{January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},short:{January:"Jan",February:"Feb",March:"Mar",April:"Apr",May:"May",June:"Jun",July:"Jul",August:"Aug",September:"Sept",October:"Oct",November:"Nov",December:"Dec"}},week:{long:{self:"Week",monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"},short:{self:"Week",monday:"Mon",tuesday:"Tue",wednesday:"Wed",thursday:"Thu",friday:"Fri",saturday:"Sat",sunday:"Sun"}}},U6={locale:"en-US",empty:{description:"No Data"},drawer:{okText:"Ok",cancelText:"Cancel"},popconfirm:{okText:"Ok",cancelText:"Cancel"},modal:{okText:"Ok",cancelText:"Cancel"},pagination:{goto:"Goto",page:"Page",countPerPage:" / Page",total:"Total: {0}"},table:{okText:"Ok",resetText:"Reset"},upload:{start:"Start",cancel:"Cancel",delete:"Delete",retry:"Click to retry",buttonText:"Upload",preview:"Preview",drag:"Click or drag file to this area to upload",dragHover:"Release to upload",error:"Upload Error"},calendar:ka,datePicker:{view:ka.view,month:ka.month,week:ka.week,placeholder:{date:"Please select date",week:"Please select week",month:"Please select month",year:"Please select year",quarter:"Please select quarter",time:"Please select time"},rangePlaceholder:{date:["Start date","End date"],week:["Start week","End week"],month:["Start month","End month"],year:["Start year","End year"],quarter:["Start quarter","End quarter"],time:["Start time","End time"]},selectTime:"Select time",today:"Today",now:"Now",ok:"Ok"},image:{loading:"loading"},imagePreview:{fullScreen:"Full Screen",rotateRight:"Rotate Right",rotateLeft:"Rotate Left",zoomIn:"Zoom In",zoomOut:"Zoom Out",originalSize:"Original Size"},typography:{copied:"Copied",copy:"Copy",expand:"Expand",collapse:"Collapse",edit:"Edit"},form:{validateMessages:T2},colorPicker:{history:"History Colors",preset:"Preset Colors",empty:"Empty"}},j1={Association:"bpmn-icon-association",BusinessRuleTask:"bpmn-icon-business-rule-task",CallActivity:"bpmn-icon-call-activity",Collaboration:"bpmn-icon-collaboration",ConditionalFlow:"bpmn-icon-conditional-flow",SequenceFlow:"bpmn-icon-connection",DataInput:"bpmn-icon-data-input",DataInputAssociation:"bpmn-icon-data-input-output-association",DataOutput:"bpmn-icon-data-output",DataOutputAssociation:"bpmn-icon-data-input-output-association",DataObjectReference:"bpmn-icon-data-object",DataStoreReference:"bpmn-icon-data-store",DefaultFlow:"bpmn-icon-default-flow",CancelEndEvent:"bpmn-icon-end-event-cancel",CompensateEndEvent:"bpmn-icon-end-event-compensation",ErrorEndEvent:"bpmn-icon-end-event-error",EscalationEndEvent:"bpmn-icon-end-event-escalation",LinkEndEvent:"bpmn-icon-end-event-link",MessageEndEvent:"bpmn-icon-end-event-message",MultipleEndEvent:"bpmn-icon-end-event-multiple",EndEvent:"bpmn-icon-end-event-none",SignalEndEvent:"bpmn-icon-end-event-signal",TerminateEndEvent:"bpmn-icon-end-event-terminate",EventSubProcess:"bpmn-icon-event-subprocess-expanded",ComplexGateway:"bpmn-icon-gateway-complex",EventBasedGateway:"bpmn-icon-gateway-eventbased",ExclusiveGateway:"bpmn-icon-gateway-xor",Gateway:"bpmn-icon-gateway-none",InclusiveGateway:"bpmn-icon-gateway-or",ParallelGateway:"bpmn-icon-gateway-parallel",Group:"bpmn-icon-group",CancelIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-cancel",CompensateIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-compensation",ConditionalIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-condition",ErrorIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-error",EscalationIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-escalation",LinkIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-link",MessageIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-message",MultipleIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-multiple",ConditionalIntermediateCatchEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",EscalationIntermediateCatchEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",MessageIntermediateCatchEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-message",MultipleIntermediateCatchEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-multiple",ParallelIntermediateCatchEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-parallel",SignalIntermediateCatchEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",TimerIntermediateCatchEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",ParallelMultipleIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-parallel-multiple",SignalIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-signal",TimerIntermediateCatchEvent:"bpmn-icon-intermediate-event-catch-timer",IntermediateThrowEvent:"bpmn-icon-intermediate-event-none",CompensateIntermediateThrowEvent:"bpmn-icon-intermediate-event-throw-compensation",EscalationIntermediateThrowEvent:"bpmn-icon-intermediate-event-throw-escalation",LinkIntermediateThrowEvent:"bpmn-icon-intermediate-event-throw-link",MessageIntermediateThrowEvent:"bpmn-icon-intermediate-event-throw-message",MultipleIntermediateThrowEvent:"bpmn-icon-intermediate-event-throw-multiple",SignalIntermediateThrowEvent:"bpmn-icon-intermediate-event-throw-signal",Lane:"bpmn-icon-lane",ManualTask:"bpmn-icon-manual-task",MessageFlow:"bpmn-icon-message-flow",Participant:"bpmn-icon-participant",Process:"bpmn-icon-process",ReceiveTask:"bpmn-icon-receive-task",ScriptTask:"bpmn-icon-script-task",SendTask:"bpmn-icon-send-task",ServiceTask:"bpmn-icon-service-task",CompensateStartEvent:"bpmn-icon-start-event-compensation",ConditionalStartEvent:"bpmn-icon-start-event-condition",ErrorStartEvent:"bpmn-icon-start-event-error",EscalationStartEvent:"bpmn-icon-start-event-escalation",MessageStartEvent:"bpmn-icon-start-event-message",MultipleStartEvent:"bpmn-icon-start-event-multiple",ConditionalStartEventNonInterrupting:"bpmn-icon-start-event-non-interrupting-condition",EscalationStartEventNonInterrupting:"bpmn-icon-start-event-non-interrupting-escalation",MessageStartEventNonInterrupting:"bpmn-icon-start-event-non-interrupting-message",MultipleStartEventNonInterrupting:"bpmn-icon-start-event-non-interrupting-multiple",ParallelMultipleStartEventNonInterrupting:"bpmn-icon-start-event-non-interrupting-parallel-multiple",SignalStartEventNonInterrupting:"bpmn-icon-start-event-non-interrupting-signal",TimerStartEventNonInterrupting:"bpmn-icon-start-event-non-interrupting-timer",CancelBoundaryEvent:"bpmn-icon-intermediate-event-catch-cancel",CompensateBoundaryEvent:"bpmn-icon-intermediate-event-catch-compensation",ConditionalBoundaryEvent:"bpmn-icon-intermediate-event-catch-condition",ErrorBoundaryEvent:"bpmn-icon-intermediate-event-catch-error",EscalationBoundaryEvent:"bpmn-icon-intermediate-event-catch-escalation",LinkBoundaryEvent:"bpmn-icon-intermediate-event-catch-link",MessageBoundaryEvent:"bpmn-icon-intermediate-event-catch-message",MultipleBoundaryEvent:"bpmn-icon-intermediate-event-catch-multiple",BoundaryEvent:"bpmn-icon-intermediate-event-none",ConditionalBoundaryEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-condition",EscalationBoundaryEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-escalation",MessageBoundaryEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-message",MultipleBoundaryEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-multiple",ParallelBoundaryEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-parallel",SignalBoundaryEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-signal",TimerBoundaryEventNonInterrupting:"bpmn-icon-intermediate-event-catch-non-interrupting-timer",ParallelMultipleBoundaryEvent:"bpmn-icon-intermediate-event-catch-parallel-multiple",SignalBoundaryEvent:"bpmn-icon-intermediate-event-catch-signal",TimerBoundaryEvent:"bpmn-icon-intermediate-event-catch-timer",StartEvent:"bpmn-icon-start-event-none",ParallelMultipleStartEvent:"bpmn-icon-start-event-parallel-multiple",SignalStartEvent:"bpmn-icon-start-event-signal",TimerStartEvent:"bpmn-icon-start-event-timer",CollapsedSubProcess:"bpmn-icon-subprocess-collapsed",CollapsedAdHocSubProcess:"bpmn-icon-subprocess-collapsed",ExpandedSubProcess:"bpmn-icon-subprocess-expanded",ExpandedAdHocSubProcess:"bpmn-icon-subprocess-expanded",Task:"bpmn-icon-task-none",TextAnnotation:"bpmn-icon-text-annotation",Transaction:"bpmn-icon-transaction",UserTask:"bpmn-icon-user-task",CopyServiceTask:"copy-service-task",CamelServiceTask:"camel-service-task",DmnServiceTask:"dmn-service-task",ScServiceTask:"sc-service-task",RestServiceTask:"rest-service-task",HttpServiceTask:"http-service-task",MqServiceTask:"mq-service-task",MailServiceTask:"mail-service-task",ShellServiceTask:"shell-service-task"};function H6(o){const{type:t}=o;let n=k2(t);if(Yn(o))return n=`VariableListener${n}`,(z.is(o,"bpmn:StartEvent")&&!nt.isInterrupting(o)||z.is(o,"bpmn:BoundaryEvent")&&!q1(o))&&(n=`${n}NonInterrupting`),n;const r=Z6(o);return r?(n=`${z6(r)}${n}`,(z.is(o,"bpmn:StartEvent")&&!nt.isInterrupting(o)||z.is(o,"bpmn:BoundaryEvent")&&!q1(o))&&(n=`${n}NonInterrupting`),n):(z.is(o,"bpmn:SubProcess")&&!z.is(o,"bpmn:Transaction")&&(nt.isEventSubProcess(o)?n=`Event${n}`:n=`${nt.isExpanded(o)&&!D4.isPlane(o)?"Expanded":"Collapsed"}${n}`),G6(o)&&(n="DefaultFlow"),K6(o)&&(n="ConditionalFlow"),z.is(o,"bpmn:ServiceTask")&&(n=`${wm(o.businessObject.get("type"))}ServiceTask`),n)}function k2(o){return o.split(":")[1]}function Z6(o){const t=z.getBusinessObject(o),n=t.eventDefinitions;return n&&n[0]}function z6(o){return k2(o.$type).replace("EventDefinition","")}function q1(o){const t=z.getBusinessObject(o);return t&&t.cancelActivity!==!1}function G6(o){const t=z.getBusinessObject(o),n=z.getBusinessObject(o.source);return!z.is(o,"bpmn:SequenceFlow")||!n?!1:n.default&&n.default===t&&(z.is(n,"bpmn:Gateway")||z.is(n,"bpmn:Activity"))}function K6(o){const t=z.getBusinessObject(o),n=z.getBusinessObject(o.source);return!z.is(o,"bpmn:SequenceFlow")||!n?!1:t.conditionExpression&&z.is(n,"bpmn:Activity")}function W6(o){if(o.includes("-")){const t=o.split("-");let n="";for(let a of t)n+=a.charAt(0).toUpperCase()+a.slice(1);return n}return o[0]===o[0].toLowerCase()?o.charAt(0).toUpperCase()+o.slice(1):o}const Y6=e.defineComponent({name:"LucideIcon",props:{name:{type:String,required:!0},size:{type:Number,default:16},color:{type:String,default:"currentColor"},strokeWidth:{type:Number,default:2},defaultClass:{type:String,default:"lucide-icon"}},setup(o){return{icon:e.computed(()=>L4[W6(o.name)])}}});function J6(o,t,n,a,r,i){return e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.icon),e.normalizeProps(e.guardReactiveProps(o.$props)),null,16)}const be=kn(Y6,[["render",J6]]);function x2(o,t){return function(){return o.apply(t,arguments)}}const{toString:X6}=Object.prototype,{getPrototypeOf:Nl}=Object,wr=(o=>t=>{const n=X6.call(t);return o[n]||(o[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),f0=o=>(o=o.toLowerCase(),t=>wr(t)===o),Cr=o=>t=>typeof t===o,{isArray:co}=Array,Bo=Cr("undefined");function Q6(o){return o!==null&&!Bo(o)&&o.constructor!==null&&!Bo(o.constructor)&&Qt(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const V2=f0("ArrayBuffer");function ef(o){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(o):t=o&&o.buffer&&V2(o.buffer),t}const tf=Cr("string"),Qt=Cr("function"),A2=Cr("number"),_r=o=>o!==null&&typeof o=="object",nf=o=>o===!0||o===!1,Fa=o=>{if(wr(o)!=="object")return!1;const t=Nl(o);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},of=f0("Date"),af=f0("File"),rf=f0("Blob"),sf=f0("FileList"),lf=o=>_r(o)&&Qt(o.pipe),cf=o=>{let t;return o&&(typeof FormData=="function"&&o instanceof FormData||Qt(o.append)&&((t=wr(o))==="formdata"||t==="object"&&Qt(o.toString)&&o.toString()==="[object FormData]"))},uf=f0("URLSearchParams"),[df,pf,mf,ff]=["ReadableStream","Request","Response","Headers"].map(f0),hf=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xo(o,t,{allOwnKeys:n=!1}={}){if(o===null||typeof o>"u")return;let a,r;if(typeof o!="object"&&(o=[o]),co(o))for(a=0,r=o.length;a<r;a++)t.call(null,o[a],a,o);else{const i=n?Object.getOwnPropertyNames(o):Object.keys(o),s=i.length;let l;for(a=0;a<s;a++)l=i[a],t.call(null,o[l],l,o)}}function D2(o,t){t=t.toLowerCase();const n=Object.keys(o);let a=n.length,r;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}const R2=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,I2=o=>!Bo(o)&&o!==R2;function ms(){const{caseless:o}=I2(this)&&this||{},t={},n=(a,r)=>{const i=o&&D2(t,r)||r;Fa(t[i])&&Fa(a)?t[i]=ms(t[i],a):Fa(a)?t[i]=ms({},a):co(a)?t[i]=a.slice():t[i]=a};for(let a=0,r=arguments.length;a<r;a++)arguments[a]&&Xo(arguments[a],n);return t}const vf=(o,t,n,{allOwnKeys:a}={})=>(Xo(t,(r,i)=>{n&&Qt(r)?o[i]=x2(r,n):o[i]=r},{allOwnKeys:a}),o),gf=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),bf=(o,t,n,a)=>{o.prototype=Object.create(t.prototype,a),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:t.prototype}),n&&Object.assign(o.prototype,n)},yf=(o,t,n,a)=>{let r,i,s;const l={};if(t=t||{},o==null)return t;do{for(r=Object.getOwnPropertyNames(o),i=r.length;i-- >0;)s=r[i],(!a||a(s,o,t))&&!l[s]&&(t[s]=o[s],l[s]=!0);o=n!==!1&&Nl(o)}while(o&&(!n||n(o,t))&&o!==Object.prototype);return t},Ef=(o,t,n)=>{o=String(o),(n===void 0||n>o.length)&&(n=o.length),n-=t.length;const a=o.indexOf(t,n);return a!==-1&&a===n},wf=o=>{if(!o)return null;if(co(o))return o;let t=o.length;if(!A2(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=o[t];return n},Cf=(o=>t=>o&&t instanceof o)(typeof Uint8Array<"u"&&Nl(Uint8Array)),_f=(o,t)=>{const a=(o&&o[Symbol.iterator]).call(o);let r;for(;(r=a.next())&&!r.done;){const i=r.value;t.call(o,i[0],i[1])}},Nf=(o,t)=>{let n;const a=[];for(;(n=o.exec(t))!==null;)a.push(n);return a},Sf=f0("HTMLFormElement"),Tf=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,r){return a.toUpperCase()+r}),U1=(({hasOwnProperty:o})=>(t,n)=>o.call(t,n))(Object.prototype),kf=f0("RegExp"),O2=(o,t)=>{const n=Object.getOwnPropertyDescriptors(o),a={};Xo(n,(r,i)=>{let s;(s=t(r,i,o))!==!1&&(a[i]=s||r)}),Object.defineProperties(o,a)},xf=o=>{O2(o,(t,n)=>{if(Qt(o)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=o[n];if(Qt(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Vf=(o,t)=>{const n={},a=r=>{r.forEach(i=>{n[i]=!0})};return co(o)?a(o):a(String(o).split(t)),n},Af=()=>{},Df=(o,t)=>o!=null&&Number.isFinite(o=+o)?o:t,Oi="abcdefghijklmnopqrstuvwxyz",H1="0123456789",$2={DIGIT:H1,ALPHA:Oi,ALPHA_DIGIT:Oi+Oi.toUpperCase()+H1},Rf=(o=16,t=$2.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;o--;)n+=t[Math.random()*a|0];return n};function If(o){return!!(o&&Qt(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const Of=o=>{const t=new Array(10),n=(a,r)=>{if(_r(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[r]=a;const i=co(a)?[]:{};return Xo(a,(s,l)=>{const c=n(s,r+1);!Bo(c)&&(i[l]=c)}),t[r]=void 0,i}}return a};return n(o,0)},$f=f0("AsyncFunction"),Lf=o=>o&&(_r(o)||Qt(o))&&Qt(o.then)&&Qt(o.catch),K={isArray:co,isArrayBuffer:V2,isBuffer:Q6,isFormData:cf,isArrayBufferView:ef,isString:tf,isNumber:A2,isBoolean:nf,isObject:_r,isPlainObject:Fa,isReadableStream:df,isRequest:pf,isResponse:mf,isHeaders:ff,isUndefined:Bo,isDate:of,isFile:af,isBlob:rf,isRegExp:kf,isFunction:Qt,isStream:lf,isURLSearchParams:uf,isTypedArray:Cf,isFileList:sf,forEach:Xo,merge:ms,extend:vf,trim:hf,stripBOM:gf,inherits:bf,toFlatObject:yf,kindOf:wr,kindOfTest:f0,endsWith:Ef,toArray:wf,forEachEntry:_f,matchAll:Nf,isHTMLForm:Sf,hasOwnProperty:U1,hasOwnProp:U1,reduceDescriptors:O2,freezeMethods:xf,toObjectSet:Vf,toCamelCase:Tf,noop:Af,toFiniteNumber:Df,findKey:D2,global:R2,isContextDefined:I2,ALPHABET:$2,generateString:Rf,isSpecCompliantForm:If,toJSONObject:Of,isAsyncFn:$f,isThenable:Lf};function Ne(o,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r)}K.inherits(Ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:K.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const L2=Ne.prototype,B2={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(o=>{B2[o]={value:o}});Object.defineProperties(Ne,B2);Object.defineProperty(L2,"isAxiosError",{value:!0});Ne.from=(o,t,n,a,r,i)=>{const s=Object.create(L2);return K.toFlatObject(o,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Ne.call(s,o.message,t,n,a,r),s.cause=o,s.name=o.name,i&&Object.assign(s,i),s};const Bf=null;function fs(o){return K.isPlainObject(o)||K.isArray(o)}function P2(o){return K.endsWith(o,"[]")?o.slice(0,-2):o}function Z1(o,t,n){return o?o.concat(t).map(function(r,i){return r=P2(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Pf(o){return K.isArray(o)&&!o.some(fs)}const Mf=K.toFlatObject(K,{},null,function(t){return/^is[A-Z]/.test(t)});function Nr(o,t,n){if(!K.isObject(o))throw new TypeError("target must be an object");t=t||new FormData,n=K.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!K.isUndefined(g[y])});const a=n.metaTokens,r=n.visitor||d,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&K.isSpecCompliantForm(t);if(!K.isFunction(r))throw new TypeError("visitor must be a function");function u(h){if(h===null)return"";if(K.isDate(h))return h.toISOString();if(!c&&K.isBlob(h))throw new Ne("Blob is not supported. Use a Buffer instead.");return K.isArrayBuffer(h)||K.isTypedArray(h)?c&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function d(h,y,g){let C=h;if(h&&!g&&typeof h=="object"){if(K.endsWith(y,"{}"))y=a?y:y.slice(0,-2),h=JSON.stringify(h);else if(K.isArray(h)&&Pf(h)||(K.isFileList(h)||K.endsWith(y,"[]"))&&(C=K.toArray(h)))return y=P2(y),C.forEach(function(D,_){!(K.isUndefined(D)||D===null)&&t.append(s===!0?Z1([y],_,i):s===null?y:y+"[]",u(D))}),!1}return fs(h)?!0:(t.append(Z1(g,y,i),u(h)),!1)}const p=[],m=Object.assign(Mf,{defaultVisitor:d,convertValue:u,isVisitable:fs});function f(h,y){if(!K.isUndefined(h)){if(p.indexOf(h)!==-1)throw Error("Circular reference detected in "+y.join("."));p.push(h),K.forEach(h,function(C,x){(!(K.isUndefined(C)||C===null)&&r.call(t,C,K.isString(x)?x.trim():x,y,m))===!0&&f(C,y?y.concat(x):[x])}),p.pop()}}if(!K.isObject(o))throw new TypeError("data must be an object");return f(o),t}function z1(o){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function Sl(o,t){this._pairs=[],o&&Nr(o,this,t)}const M2=Sl.prototype;M2.append=function(t,n){this._pairs.push([t,n])};M2.toString=function(t){const n=t?function(a){return t.call(this,a,z1)}:z1;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function Ff(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function F2(o,t,n){if(!t)return o;const a=n&&n.encode||Ff,r=n&&n.serialize;let i;if(r?i=r(t,n):i=K.isURLSearchParams(t)?t.toString():new Sl(t,n).toString(a),i){const s=o.indexOf("#");s!==-1&&(o=o.slice(0,s)),o+=(o.indexOf("?")===-1?"?":"&")+i}return o}class G1{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){K.forEach(this.handlers,function(a){a!==null&&t(a)})}}const j2={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},jf=typeof URLSearchParams<"u"?URLSearchParams:Sl,qf=typeof FormData<"u"?FormData:null,Uf=typeof Blob<"u"?Blob:null,Hf={isBrowser:!0,classes:{URLSearchParams:jf,FormData:qf,Blob:Uf},protocols:["http","https","file","blob","url","data"]},Tl=typeof window<"u"&&typeof document<"u",Zf=(o=>Tl&&["ReactNative","NativeScript","NS"].indexOf(o)<0)(typeof navigator<"u"&&navigator.product),zf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Gf=Tl&&window.location.href||"http://localhost",Kf=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Tl,hasStandardBrowserEnv:Zf,hasStandardBrowserWebWorkerEnv:zf,origin:Gf},Symbol.toStringTag,{value:"Module"})),u0={...Kf,...Hf};function Wf(o,t){return Nr(o,new u0.classes.URLSearchParams,Object.assign({visitor:function(n,a,r,i){return u0.isNode&&K.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Yf(o){return K.matchAll(/\w+|\[(\w*)]/g,o).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jf(o){const t={},n=Object.keys(o);let a;const r=n.length;let i;for(a=0;a<r;a++)i=n[a],t[i]=o[i];return t}function q2(o){function t(n,a,r,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=n.length;return s=!s&&K.isArray(r)?r.length:s,c?(K.hasOwnProp(r,s)?r[s]=[r[s],a]:r[s]=a,!l):((!r[s]||!K.isObject(r[s]))&&(r[s]=[]),t(n,a,r[s],i)&&K.isArray(r[s])&&(r[s]=Jf(r[s])),!l)}if(K.isFormData(o)&&K.isFunction(o.entries)){const n={};return K.forEachEntry(o,(a,r)=>{t(Yf(a),r,n,0)}),n}return null}function Xf(o,t,n){if(K.isString(o))try{return(t||JSON.parse)(o),K.trim(o)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(o)}const Qo={transitional:j2,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",r=a.indexOf("application/json")>-1,i=K.isObject(t);if(i&&K.isHTMLForm(t)&&(t=new FormData(t)),K.isFormData(t))return r?JSON.stringify(q2(t)):t;if(K.isArrayBuffer(t)||K.isBuffer(t)||K.isStream(t)||K.isFile(t)||K.isBlob(t)||K.isReadableStream(t))return t;if(K.isArrayBufferView(t))return t.buffer;if(K.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(a.indexOf("application/x-www-form-urlencoded")>-1)return Wf(t,this.formSerializer).toString();if((l=K.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Nr(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),Xf(t)):t}],transformResponse:[function(t){const n=this.transitional||Qo.transitional,a=n&&n.forcedJSONParsing,r=this.responseType==="json";if(K.isResponse(t)||K.isReadableStream(t))return t;if(t&&K.isString(t)&&(a&&!this.responseType||r)){const s=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?Ne.from(l,Ne.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:u0.classes.FormData,Blob:u0.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};K.forEach(["delete","get","head","post","put","patch"],o=>{Qo.headers[o]={}});const Qf=K.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),e8=o=>{const t={};let n,a,r;return o&&o.split(`
`).forEach(function(s){r=s.indexOf(":"),n=s.substring(0,r).trim().toLowerCase(),a=s.substring(r+1).trim(),!(!n||t[n]&&Qf[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},K1=Symbol("internals");function No(o){return o&&String(o).trim().toLowerCase()}function ja(o){return o===!1||o==null?o:K.isArray(o)?o.map(ja):String(o)}function t8(o){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(o);)t[a[1]]=a[2];return t}const n8=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function $i(o,t,n,a,r){if(K.isFunction(a))return a.call(this,t,n);if(r&&(t=n),!!K.isString(t)){if(K.isString(a))return t.indexOf(a)!==-1;if(K.isRegExp(a))return a.test(t)}}function o8(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function a8(o,t){const n=K.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(o,a+n,{value:function(r,i,s){return this[a].call(this,t,r,i,s)},configurable:!0})})}class Bt{constructor(t){t&&this.set(t)}set(t,n,a){const r=this;function i(l,c,u){const d=No(c);if(!d)throw new Error("header name must be a non-empty string");const p=K.findKey(r,d);(!p||r[p]===void 0||u===!0||u===void 0&&r[p]!==!1)&&(r[p||c]=ja(l))}const s=(l,c)=>K.forEach(l,(u,d)=>i(u,d,c));if(K.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(K.isString(t)&&(t=t.trim())&&!n8(t))s(e8(t),n);else if(K.isHeaders(t))for(const[l,c]of t.entries())i(c,l,a);else t!=null&&i(n,t,a);return this}get(t,n){if(t=No(t),t){const a=K.findKey(this,t);if(a){const r=this[a];if(!n)return r;if(n===!0)return t8(r);if(K.isFunction(n))return n.call(this,r,a);if(K.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=No(t),t){const a=K.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||$i(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let r=!1;function i(s){if(s=No(s),s){const l=K.findKey(a,s);l&&(!n||$i(a,a[l],l,n))&&(delete a[l],r=!0)}}return K.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let a=n.length,r=!1;for(;a--;){const i=n[a];(!t||$i(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,a={};return K.forEach(this,(r,i)=>{const s=K.findKey(a,i);if(s){n[s]=ja(r),delete n[i];return}const l=t?o8(i):String(i).trim();l!==i&&delete n[i],n[l]=ja(r),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return K.forEach(this,(a,r)=>{a!=null&&a!==!1&&(n[r]=t&&K.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(r=>a.set(r)),a}static accessor(t){const a=(this[K1]=this[K1]={accessors:{}}).accessors,r=this.prototype;function i(s){const l=No(s);a[l]||(a8(r,s),a[l]=!0)}return K.isArray(t)?t.forEach(i):i(t),this}}Bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);K.reduceDescriptors(Bt.prototype,({value:o},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>o,set(a){this[n]=a}}});K.freezeMethods(Bt);function Li(o,t){const n=this||Qo,a=t||n,r=Bt.from(a.headers);let i=a.data;return K.forEach(o,function(l){i=l.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function U2(o){return!!(o&&o.__CANCEL__)}function uo(o,t,n){Ne.call(this,o??"canceled",Ne.ERR_CANCELED,t,n),this.name="CanceledError"}K.inherits(uo,Ne,{__CANCEL__:!0});function H2(o,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?o(n):t(new Ne("Request failed with status code "+n.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function r8(o){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return t&&t[1]||""}function i8(o,t){o=o||10;const n=new Array(o),a=new Array(o);let r=0,i=0,s;return t=t!==void 0?t:1e3,function(c){const u=Date.now(),d=a[i];s||(s=u),n[r]=c,a[r]=u;let p=i,m=0;for(;p!==r;)m+=n[p++],p=p%o;if(r=(r+1)%o,r===i&&(i=(i+1)%o),u-s<t)return;const f=d&&u-d;return f?Math.round(m*1e3/f):void 0}}function s8(o,t){let n=0;const a=1e3/t;let r=null;return function(){const s=this===!0,l=Date.now();if(s||l-n>a)return r&&(clearTimeout(r),r=null),n=l,o.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),o.apply(null,arguments)),a-(l-n)))}}const Xa=(o,t,n=3)=>{let a=0;const r=i8(50,250);return s8(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-a,u=r(c),d=s<=l;a=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:i,lengthComputable:l!=null};p[t?"download":"upload"]=!0,o(p)},n)},l8=u0.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function r(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=r(window.location.href),function(s){const l=K.isString(s)?r(s):s;return l.protocol===a.protocol&&l.host===a.host}}():function(){return function(){return!0}}(),c8=u0.hasStandardBrowserEnv?{write(o,t,n,a,r,i){const s=[o+"="+encodeURIComponent(t)];K.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),K.isString(a)&&s.push("path="+a),K.isString(r)&&s.push("domain="+r),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(o){const t=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function u8(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function d8(o,t){return t?o.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):o}function Z2(o,t){return o&&!u8(t)?d8(o,t):t}const W1=o=>o instanceof Bt?{...o}:o;function Cn(o,t){t=t||{};const n={};function a(u,d,p){return K.isPlainObject(u)&&K.isPlainObject(d)?K.merge.call({caseless:p},u,d):K.isPlainObject(d)?K.merge({},d):K.isArray(d)?d.slice():d}function r(u,d,p){if(K.isUndefined(d)){if(!K.isUndefined(u))return a(void 0,u,p)}else return a(u,d,p)}function i(u,d){if(!K.isUndefined(d))return a(void 0,d)}function s(u,d){if(K.isUndefined(d)){if(!K.isUndefined(u))return a(void 0,u)}else return a(void 0,d)}function l(u,d,p){if(p in t)return a(u,d);if(p in o)return a(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d)=>r(W1(u),W1(d),!0)};return K.forEach(Object.keys(Object.assign({},o,t)),function(d){const p=c[d]||r,m=p(o[d],t[d],d);K.isUndefined(m)&&p!==l||(n[d]=m)}),n}const z2=o=>{const t=Cn({},o);let{data:n,withXSRFToken:a,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=Bt.from(s),t.url=F2(Z2(t.baseURL,t.url),o.params,o.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(K.isFormData(n)){if(u0.hasStandardBrowserEnv||u0.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(u0.hasStandardBrowserEnv&&(a&&K.isFunction(a)&&(a=a(t)),a||a!==!1&&l8(t.url))){const u=r&&i&&c8.read(i);u&&s.set(r,u)}return t},p8=typeof XMLHttpRequest<"u",m8=p8&&function(o){return new Promise(function(n,a){const r=z2(o);let i=r.data;const s=Bt.from(r.headers).normalize();let{responseType:l}=r,c;function u(){r.cancelToken&&r.cancelToken.unsubscribe(c),r.signal&&r.signal.removeEventListener("abort",c)}let d=new XMLHttpRequest;d.open(r.method.toUpperCase(),r.url,!0),d.timeout=r.timeout;function p(){if(!d)return;const f=Bt.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),y={data:!l||l==="text"||l==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:f,config:o,request:d};H2(function(C){n(C),u()},function(C){a(C),u()},y),d=null}"onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(a(new Ne("Request aborted",Ne.ECONNABORTED,r,d)),d=null)},d.onerror=function(){a(new Ne("Network Error",Ne.ERR_NETWORK,r,d)),d=null},d.ontimeout=function(){let h=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const y=r.transitional||j2;r.timeoutErrorMessage&&(h=r.timeoutErrorMessage),a(new Ne(h,y.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,r,d)),d=null},i===void 0&&s.setContentType(null),"setRequestHeader"in d&&K.forEach(s.toJSON(),function(h,y){d.setRequestHeader(y,h)}),K.isUndefined(r.withCredentials)||(d.withCredentials=!!r.withCredentials),l&&l!=="json"&&(d.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&d.addEventListener("progress",Xa(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",Xa(r.onUploadProgress)),(r.cancelToken||r.signal)&&(c=f=>{d&&(a(!f||f.type?new uo(null,o,d):f),d.abort(),d=null)},r.cancelToken&&r.cancelToken.subscribe(c),r.signal&&(r.signal.aborted?c():r.signal.addEventListener("abort",c)));const m=r8(r.url);if(m&&u0.protocols.indexOf(m)===-1){a(new Ne("Unsupported protocol "+m+":",Ne.ERR_BAD_REQUEST,o));return}d.send(i||null)})},f8=(o,t)=>{let n=new AbortController,a;const r=function(c){if(!a){a=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof Ne?u:new uo(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{r(new Ne(`timeout ${t} of ms exceeded`,Ne.ETIMEDOUT))},t);const s=()=>{o&&(i&&clearTimeout(i),i=null,o.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",r):c.unsubscribe(r))}),o=null)};o.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",r));const{signal:l}=n;return l.unsubscribe=s,[l,()=>{i&&clearTimeout(i),i=null}]},h8=function*(o,t){let n=o.byteLength;if(!t||n<t){yield o;return}let a=0,r;for(;a<n;)r=a+t,yield o.slice(a,r),a=r},v8=async function*(o,t,n){for await(const a of o)yield*h8(ArrayBuffer.isView(a)?a:await n(String(a)),t)},Y1=(o,t,n,a,r)=>{const i=v8(o,t,r);let s=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await i.next();if(c){l.close(),a();return}let d=u.byteLength;n&&n(s+=d),l.enqueue(new Uint8Array(u))},cancel(l){return a(l),i.return()}},{highWaterMark:2})},J1=(o,t)=>{const n=o!=null;return a=>setTimeout(()=>t({lengthComputable:n,total:o,loaded:a}))},Sr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",G2=Sr&&typeof ReadableStream=="function",hs=Sr&&(typeof TextEncoder=="function"?(o=>t=>o.encode(t))(new TextEncoder):async o=>new Uint8Array(await new Response(o).arrayBuffer())),g8=G2&&(()=>{let o=!1;const t=new Request(u0.origin,{body:new ReadableStream,method:"POST",get duplex(){return o=!0,"half"}}).headers.has("Content-Type");return o&&!t})(),X1=64*1024,vs=G2&&!!(()=>{try{return K.isReadableStream(new Response("").body)}catch{}})(),Qa={stream:vs&&(o=>o.body)};Sr&&(o=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Qa[t]&&(Qa[t]=K.isFunction(o[t])?n=>n[t]():(n,a)=>{throw new Ne(`Response type '${t}' is not supported`,Ne.ERR_NOT_SUPPORT,a)})})})(new Response);const b8=async o=>{if(o==null)return 0;if(K.isBlob(o))return o.size;if(K.isSpecCompliantForm(o))return(await new Request(o).arrayBuffer()).byteLength;if(K.isArrayBufferView(o))return o.byteLength;if(K.isURLSearchParams(o)&&(o=o+""),K.isString(o))return(await hs(o)).byteLength},y8=async(o,t)=>{const n=K.toFiniteNumber(o.getContentLength());return n??b8(t)},E8=Sr&&(async o=>{let{url:t,method:n,data:a,signal:r,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:m}=z2(o);u=u?(u+"").toLowerCase():"text";let[f,h]=r||i||s?f8([r,i],s):[],y,g;const C=()=>{!y&&setTimeout(()=>{f&&f.unsubscribe()}),y=!0};let x;try{if(c&&g8&&n!=="get"&&n!=="head"&&(x=await y8(d,a))!==0){let E=new Request(t,{method:"POST",body:a,duplex:"half"}),w;K.isFormData(a)&&(w=E.headers.get("content-type"))&&d.setContentType(w),E.body&&(a=Y1(E.body,X1,J1(x,Xa(c)),null,hs))}K.isString(p)||(p=p?"cors":"omit"),g=new Request(t,{...m,signal:f,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:a,duplex:"half",withCredentials:p});let D=await fetch(g);const _=vs&&(u==="stream"||u==="response");if(vs&&(l||_)){const E={};["status","statusText","headers"].forEach(b=>{E[b]=D[b]});const w=K.toFiniteNumber(D.headers.get("content-length"));D=new Response(Y1(D.body,X1,l&&J1(w,Xa(l,!0)),_&&C,hs),E)}u=u||"text";let T=await Qa[K.findKey(Qa,u)||"text"](D,o);return!_&&C(),h&&h(),await new Promise((E,w)=>{H2(E,w,{data:T,headers:Bt.from(D.headers),status:D.status,statusText:D.statusText,config:o,request:g})})}catch(D){throw C(),D&&D.name==="TypeError"&&/fetch/i.test(D.message)?Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,o,g),{cause:D.cause||D}):Ne.from(D,D&&D.code,o,g)}}),gs={http:Bf,xhr:m8,fetch:E8};K.forEach(gs,(o,t)=>{if(o){try{Object.defineProperty(o,"name",{value:t})}catch{}Object.defineProperty(o,"adapterName",{value:t})}});const Q1=o=>`- ${o}`,w8=o=>K.isFunction(o)||o===null||o===!1,K2={getAdapter:o=>{o=K.isArray(o)?o:[o];const{length:t}=o;let n,a;const r={};for(let i=0;i<t;i++){n=o[i];let s;if(a=n,!w8(n)&&(a=gs[(s=String(n)).toLowerCase()],a===void 0))throw new Ne(`Unknown adapter '${s}'`);if(a)break;r[s||"#"+i]=a}if(!a){const i=Object.entries(r).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
`+i.map(Q1).join(`
`):" "+Q1(i[0]):"as no adapter specified";throw new Ne("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a},adapters:gs};function Bi(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new uo(null,o)}function ec(o){return Bi(o),o.headers=Bt.from(o.headers),o.data=Li.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),K2.getAdapter(o.adapter||Qo.adapter)(o).then(function(a){return Bi(o),a.data=Li.call(o,o.transformResponse,a),a.headers=Bt.from(a.headers),a},function(a){return U2(a)||(Bi(o),a&&a.response&&(a.response.data=Li.call(o,o.transformResponse,a.response),a.response.headers=Bt.from(a.response.headers))),Promise.reject(a)})}const W2="1.7.2",kl={};["object","boolean","number","function","string","symbol"].forEach((o,t)=>{kl[o]=function(a){return typeof a===o||"a"+(t<1?"n ":" ")+o}});const tc={};kl.transitional=function(t,n,a){function r(i,s){return"[Axios v"+W2+"] Transitional option '"+i+"'"+s+(a?". "+a:"")}return(i,s,l)=>{if(t===!1)throw new Ne(r(s," has been removed"+(n?" in "+n:"")),Ne.ERR_DEPRECATED);return n&&!tc[s]&&(tc[s]=!0,console.warn(r(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function C8(o,t,n){if(typeof o!="object")throw new Ne("options must be an object",Ne.ERR_BAD_OPTION_VALUE);const a=Object.keys(o);let r=a.length;for(;r-- >0;){const i=a[r],s=t[i];if(s){const l=o[i],c=l===void 0||s(l,i,o);if(c!==!0)throw new Ne("option "+i+" must be "+c,Ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ne("Unknown option "+i,Ne.ERR_BAD_OPTION)}}const bs={assertOptions:C8,validators:kl},G0=bs.validators;class bn{constructor(t){this.defaults=t,this.interceptors={request:new G1,response:new G1}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{a.stack?i&&!String(a.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(a.stack+=`
`+i):a.stack=i}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Cn(this.defaults,n);const{transitional:a,paramsSerializer:r,headers:i}=n;a!==void 0&&bs.assertOptions(a,{silentJSONParsing:G0.transitional(G0.boolean),forcedJSONParsing:G0.transitional(G0.boolean),clarifyTimeoutError:G0.transitional(G0.boolean)},!1),r!=null&&(K.isFunction(r)?n.paramsSerializer={serialize:r}:bs.assertOptions(r,{encode:G0.function,serialize:G0.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&K.merge(i.common,i[n.method]);i&&K.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=Bt.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(c=c&&y.synchronous,l.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let d,p=0,m;if(!c){const h=[ec.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,u),m=h.length,d=Promise.resolve(n);p<m;)d=d.then(h[p++],h[p++]);return d}m=l.length;let f=n;for(p=0;p<m;){const h=l[p++],y=l[p++];try{f=h(f)}catch(g){y.call(this,g);break}}try{d=ec.call(this,f)}catch(h){return Promise.reject(h)}for(p=0,m=u.length;p<m;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=Cn(this.defaults,t);const n=Z2(t.baseURL,t.url);return F2(n,t.params,t.paramsSerializer)}}K.forEach(["delete","get","head","options"],function(t){bn.prototype[t]=function(n,a){return this.request(Cn(a||{},{method:t,url:n,data:(a||{}).data}))}});K.forEach(["post","put","patch"],function(t){function n(a){return function(i,s,l){return this.request(Cn(l||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}bn.prototype[t]=n(),bn.prototype[t+"Form"]=n(!0)});class xl{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const a=this;this.promise.then(r=>{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](r);a._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{a.subscribe(l),i=l}).then(r);return s.cancel=function(){a.unsubscribe(i)},s},t(function(i,s,l){a.reason||(a.reason=new uo(i,s,l),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new xl(function(r){t=r}),cancel:t}}}function _8(o){return function(n){return o.apply(null,n)}}function N8(o){return K.isObject(o)&&o.isAxiosError===!0}const ys={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ys).forEach(([o,t])=>{ys[t]=o});function Y2(o){const t=new bn(o),n=x2(bn.prototype.request,t);return K.extend(n,bn.prototype,t,{allOwnKeys:!0}),K.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Y2(Cn(o,r))},n}const ot=Y2(Qo);ot.Axios=bn;ot.CanceledError=uo;ot.CancelToken=xl;ot.isCancel=U2;ot.VERSION=W2;ot.toFormData=Nr;ot.AxiosError=Ne;ot.Cancel=ot.CanceledError;ot.all=function(t){return Promise.all(t)};ot.spread=_8;ot.isAxiosError=N8;ot.mergeConfig=Cn;ot.AxiosHeaders=Bt;ot.formToJSON=o=>q2(K.isHTMLForm(o)?new FormData(o):o);ot.getAdapter=K2.getAdapter;ot.HttpStatusCode=ys;ot.default=ot;const Me=ot.create({baseURL:"/",timeout:100*1e3,withCredentials:!0,headers:{common:{"X-Requested-With":"XMLHttpRequest"},post:{"Content-Type":"application/json;charset=utf-8"}}});Me.interceptors.request.use(o=>{try{if(parent.window){const t=parent.window.localStorage.getItem("authorizationKey"),n=parent.window.localStorage.getItem("authorizationValue");parent.window.localStorage.getItem("flowtoken"),o.headers.flowtoken=parent.window.localStorage.getItem("flowtoken"),o.headers[t]=n}else console.error("只在在流程中心用iframe打开，才能获取token!")}catch(t){o.headers.flowtoken=localStorage.getItem("flowtoken");const n=window.localStorage.getItem("authorizationKey");o.headers[n]=window.localStorage.getItem("authorizationValue"),console.error("获取父窗口的token失败！"+t)}return o},o=>Promise.reject(o));Me.interceptors.response.use(o=>{if(o&&o.status==200){const t=o.data.code,n=o.data.msg;return t==="100"?Promise.resolve(o.data):t==400?Promise.reject(n):t==="101"?(Xt.Message.error(n),Promise.reject(n)):Promise.reject(o.data)}else return Promise.reject(o==null?void 0:o.data)},o=>Promise.reject(o));function Tr(o,t="id",n="parentId"){const a=[],r={};for(let i=0;i<o.length;i++)r[o[i][t]]=o[i];for(let i=0;i<o.length;i++)r[o[i][n]]&&o[i][t]!==o[i][n]?(r[o[i][n]].children||(r[o[i][n]].children=[]),r[o[i][n]]._level||(r[o[i][n]]._level=1),o[i]._level=r[o[i][n]]._level+1,r[o[i][n]].children.push(o[i])):a.push(o[i]);return a}const Vl="",Ke=Vl+"/flow/bpmnDesigner/prod/api",nc=Vl+"/flow/dmnDesigner/prod/api",Pi=Vl+"/flow/form/show",je={GetPersonalPagerModel:Ke+"/getPersonalPagerModel",GetOrgTree:Ke+"/getOrgTree",GetCompanies:Ke+"/getCompanies",GetRolePagerModel:Ke+"/getRolePagerModel",GetMatrixRoles:Ke+"/getMatrixRoles",GetListenersAndParams:Ke+"/getListenersAndParams",GetModelInfoPagerModel:Ke+"/getModelInfoPagerModel",GetBpmnByModelKey:Ke+"/getBpmnByModelKey",GetCustomFormPagerModel:Ke+"/getCustomFormPagerModel",GetDmnPagerModel:nc+"/modelPage",GetDmnModelInfo:nc+"/getDmnInfo/",GetFormItemByFormCode:Pi+"/getFormItemByFormCode",GetFormItemShowsByActivityId:Pi+"/getFormItemShowsByActivityId",SaveNodeFormPermission:Pi+"/saveOne",GetProcessNameBaseInfos:Ke+"/getProcessNameBaseInfos",SaveProcessNameExp:Ke+"/saveProcessNameExp",SaveBpmnModel:Ke+"/saveBpmnModel",GetPlatformType:Ke+"/getPlatformType",GetRoleVariablesByOrgId:Ke+"/getRoleVariablesByOrgId",GetFormVariablesByCode:Ke+"/getFormVariablesByCode",GetMatrixCompanyVariables:Ke+"/getMatrixCompanyVariables",GetMatrixDeptVariables:Ke+"/getMatrixDeptVariables",GetDeptVariables:Ke+"/getDeptVariables",GetBaseVariables:Ke+"/getBaseVariables",GetCompanyVariables:Ke+"/getCompanyVariables",GetPersonalVariables:Ke+"/getPersonalVariables",GetCategories:Ke+"/getCategories",GetFunctionVariableVos:Ke+"/getFunctionVariableVos",GetSequenceFlowVariableVos:Ke+"/getSequenceFlowVariableVos"},J2=o=>Me({method:"POST",url:je.GetPersonalPagerModel,data:{query:o.pager,entity:o.entity}}).then(t=>{const{rows:n}=t.data;return n&&(t.data.rows=n.map(a=>({id:a.id,name:a.name,code:a.code,sex:a.sex,mobile:a.mobile,email:a.email,companyId:a.companyId,companyName:a.companyName,deptId:a.deptId,deptName:a.deptName,value:X2(a.code)}))),Promise.resolve(t)}).catch(t=>Promise.reject(t)),Al=async()=>{try{const o=await Me({method:"GET",url:je.GetOrgTree}),t=Tr(o.data,"id","pid");return Promise.resolve(t)}catch(o){return console.error(o),Promise.reject(o)}},S8=()=>Me({method:"POST",url:je.GetCompanies,data:{}}).then(o=>{const t=Tr(o.data,"id","pid");return Promise.resolve(t)}).catch(o=>Promise.reject(o)),T8=o=>Me({method:"POST",url:je.GetRolePagerModel,data:{query:o.pager,entity:o.entity}}).then(t=>{const{rows:n}=t.data;return n&&(t.data.rows=n.map(a=>({id:a.id,name:a.name,sn:a.sn,companyId:a.companyId,companyName:a.companyName}))),Promise.resolve(t)}).catch(t=>Promise.reject(t)),oc=o=>Me({method:"POST",url:je.GetMatrixRoles+"/"+o.roleType}),k8=o=>Me({method:"POST",url:je.GetListenersAndParams,data:o}).then(t=>Promise.resolve(t)).catch(t=>Promise.reject(t)),x8=o=>Me({method:"POST",url:je.GetDmnPagerModel,data:{query:o.pager,entity:o.entity}}).then(t=>{const{rows:n}=t.data;return n&&(t.data.rows=n.map(a=>({id:a.id,modelId:a.modelId,modelKey:a.modelKey,name:a.name,appSn:a.appSn,appName:a.appName,categoryCode:a.categoryCode,categoryName:a.categoryName,status:a.status,statusName:a.statusName,modelXml:a.modelEditorXml||a.modelXml}))),Promise.resolve(t)}).catch(t=>Promise.reject(t)),ac=o=>Me({method:"GET",url:je.GetDmnModelInfo+o.modelKey}),V8=o=>Me({method:"POST",url:je.GetModelInfoPagerModel,data:{query:o.pager,entity:o.entity}}).then(t=>{t.data=t.data||{};const{rows:n=[]}=t.data;return n&&(t.data.rows=n.map(a=>({id:a.id,modelId:a.modelId,modelKey:a.modelKey,name:a.name,appSn:a.appSn,appName:a.appName,categoryCode:a.categoryCode,categoryName:a.categoryName,status:a.status,statusName:a.statusName}))),Promise.resolve(t)}).catch(t=>Promise.reject(t)),A8=o=>Me({method:"POST",url:je.GetCustomFormPagerModel,data:{query:o.pager,entity:o.entity}}).then(t=>{const{rows:n=[]}=t.data;return n&&n.length>0?t.data.rows=n.map(a=>({id:a.id,code:a.code,name:a.name,title:a.title,categoryCode:a.categoryCode,categoryName:a.categoryName})):(t.data.rows=[],t.data.total=0),Promise.resolve(t)}).catch(t=>Promise.reject(t)),D8=o=>Me({method:"POST",url:je.GetFormItemShowsByActivityId,data:o}),Dl=o=>Me({method:"GET",url:je.GetFormItemByFormCode+"/"+o.formType+"/"+o.formCode}).then(t=>(t.data&&t.data.forEach(n=>{n.key=n.code,n.operateType=1}),Promise.resolve(t))).catch(t=>Promise.reject(t)),R8=o=>Me({method:"POST",url:je.SaveNodeFormPermission,data:o}).then(t=>(t.success&&Xt.Message.success("保存成功"),Promise.resolve(t))).catch(t=>Promise.reject(t)),I8=o=>Me({method:"POST",url:je.SaveProcessNameExp,data:o}),O8=()=>Me({method:"GET",url:je.GetProcessNameBaseInfos}),rc=o=>Me({method:"POST",url:je.SaveBpmnModel,data:o}).then(t=>Promise.resolve(t)).catch(()=>Promise.reject("服务器异常，请稍后再试！")),$8=()=>Me({method:"GET",url:je.GetPlatformType}),L8=o=>Me({method:"GET",url:je.GetRoleVariablesByOrgId+"/"+o.orgId+"/"+o.flag}).then(t=>(t.data.forEach(n=>{n.key=n.code,n.roles=n.variableVos,n.roles&&n.roles.length>0&&n.roles.forEach(a=>{a.id=j0(a),a.value=o.flag==="one"?z8(a.id):Q2(a.id)})}),Promise.resolve(t))).catch(t=>Promise.reject(t)),B8=o=>Me({method:"GET",url:je.GetFormVariablesByCode+"/"+o}).then(t=>(t.data.forEach(n=>{n.id=j0(n),n.value=xn(n.id)}),Promise.resolve(t))).catch(t=>Promise.reject(t)),P8=o=>Me({method:"GET",url:je.GetMatrixDeptVariables}).then(t=>(t.data.forEach(n=>{n.id=j0(n),n.value=o.flag==="one"?Y8(n.id):W8(n.id),n.function=o.flag==="one"?n.function:"fuel.multi"}),Promise.resolve(t))).catch(t=>Promise.reject(t)),M8=o=>Me({method:"GET",url:je.GetMatrixCompanyVariables}).then(t=>(t.data&&t.data.forEach(n=>{n.id=j0(n),n.value=o.flag==="one"?K8(n.id):G8(n.id),n.function=o.flag==="one"?n.function:"fuel.multi"}),Promise.resolve(t))).catch(t=>Promise.reject(t)),F8=()=>Me({method:"GET",url:je.GetBaseVariables}).then(o=>(o.data&&o.data.forEach(t=>{t.id=j0(t),t.value=xn(t.code)}),Promise.resolve(o))).catch(o=>Promise.reject(o)),j8=()=>Me({method:"GET",url:je.GetCompanyVariables}).then(o=>(o.data&&o.data.forEach(t=>{t.id=j0(t),t.value=xn(t.id)}),Promise.resolve(o))).catch(o=>Promise.reject(o)),q8=()=>Me({method:"GET",url:je.GetDeptVariables}).then(o=>(o.data&&o.data.forEach(t=>{t.id=j0(t),t.value=xn(t.id)}),Promise.resolve(o))).catch(o=>Promise.reject(o)),U8=()=>Me({method:"GET",url:je.GetSequenceFlowVariableVos}).then(o=>(o.data&&o.data.forEach(t=>{t.id=j0(t),t.value=xn(t.id)}),Promise.resolve(o))).catch(o=>Promise.reject(o)),H8=()=>Me({method:"GET",url:je.GetFunctionVariableVos}).then(o=>(o.data&&o.data.forEach(t=>{t.id=t.code,t.value=xn(t.id)}),Promise.resolve(o))).catch(o=>Promise.reject(o)),Z8=()=>Me({method:"GET",url:je.GetPersonalVariables}).then(o=>(o.data&&o.data.forEach(t=>{t.id=j0(t),t.value=xn(t.id)}),Promise.resolve(o))).catch(o=>Promise.reject(o)),Rl=(o={})=>Me({method:"POST",url:je.GetCategories,data:{...o}}).then(t=>{const n=Tr(t.data,"id","pid");return Promise.resolve(n)}).catch(t=>Promise.reject(t)),j0=(o,t="prefix",n="code")=>o[t]?`${o[t]}.${o[n]}`:o[n],xn=o=>"${"+o+"}",X2=o=>"${cuel.toList("+o+")}",z8=o=>"${fuel.one("+o+")}",Q2=o=>"${fuel.multi("+o+")}",G8=o=>"${fuel.multi("+o+")}",K8=o=>"${fuel.one("+o+")}",W8=o=>"${fuel.multi("+o+")}",Y8=o=>"${fuel.one("+o+")}",kr=e.defineComponent({name:"ValidateTagInput",__name:"ValidateTagInput",props:{modelValue:{type:Array,default:void 0},validator:{type:Function,default:void 0}},emits:["update:modelValue","change"],setup(o,{emit:t}){const n=o,a=t,r=e.computed({get:()=>n.modelValue,set:s=>{a("update:modelValue",s),a("change",s)}}),i=e.computed(()=>{var s;return n.validator&&typeof n.validator=="function"?n.validator():!!((s=r.value)!=null&&s.length)});return(s,l)=>{const c=e.resolveComponent("icon-check-circle-fill"),u=e.resolveComponent("icon-exclamation-circle-fill"),d=e.resolveComponent("a-input-tag");return e.openBlock(),e.createBlock(d,e.mergeProps({modelValue:e.unref(r),"onUpdate:modelValue":l[0]||(l[0]=p=>e.isRef(r)?r.value=p:null)},s.$attrs,{class:e.unref(i)?"feedback-success":"feedback-error"}),{suffix:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createBlock(c,{key:0,size:"16"})):(e.openBlock(),e.createBlock(u,{key:1,size:"16"}))]),_:1},16,["modelValue","class"])}}}),J8={class:"tag-input-flex"},X8={class:"header-tags"},Q8={class:"tag-input-special-grid"},eh={class:"left-org-tree"},th={class:"tree-content"},nh={class:"right-table"},oh={class:"table-content"},ed=e.defineComponent({name:"RoleTagInput",__name:"RoleTagInput",props:{data:{type:Array,default:()=>[]},modalTitle:{type:String,default:"Role selection"},multiple:{type:Boolean,default:!0},rowKey:{type:String,default:"sn"},required:{type:Boolean,default:!0},validator:{type:Function,default:void 0}},emits:["update:data","change"],setup(o,{emit:t}){const n=o,a=t,{t:r}=Le.useI18n(),i=e.computed({get:()=>Array.isArray(e.toRaw(n.data))?n.data.map(J=>J.name):[],set:J=>{const ne=c.value.filter(ye=>J.includes(ye.name));a("update:data",ne),a("change",ne)}}),s=e.ref(!1),l=e.ref([]),c=e.ref([]);e.watch(()=>n.data,()=>{l.value=(n.data||[]).map(J=>J[n.rowKey]),c.value=[...n.data||[]]},{immediate:!0,deep:!0});const u=e.ref(!1),d=e.ref([]),p=e.ref(),m=e.ref([]),f=e.ref([]),h=e.ref([]),y=e.ref(0),g=e.ref(""),C=e.ref({pageSize:15,pageNum:1}),x=e.ref({companyId:"",keyword:""}),D=e.reactive({type:n.multiple?"checkbox":"radio",showCheckedAll:!1,onlyCurrent:!1}),_=e.ref("normal"),T=e.ref(),E=e.ref(),w=e.ref(),b=e.computed(()=>[{title:r("Name"),dataIndex:"name"},{title:r("Code"),dataIndex:"sn"},{title:r("Company name"),dataIndex:"companyName"}]),S=e.computed(()=>En(d.value,"name",g.value)),k=J=>({name:J.name,sn:J.sn,id:J.id,type:J.type,companyName:J.companyName}),N=async()=>{var J;try{d.value=await Al(),await e.nextTick(),(J=p.value)==null||J.expandAll(!0)}catch(ne){console.error(ne),d.value=[]}},A=async J=>{try{u.value=!0,J&&(C.value.pageNum=J);const{data:{rows:ne,total:ye}}=await T8({pager:C.value,entity:x.value});m.value=(ne||[]).map(k),y.value=ye}catch(ne){console.error(ne),m.value=[],y.value=0}finally{u.value=!1}},O=async()=>{try{const{data:J}=await oc({roleType:1});f.value=(J||[]).map(k)}catch(J){console.error(J),m.value=[]}},$=async()=>{try{const{data:J}=await oc({roleType:2});h.value=(J||[]).map(k)}catch(J){console.error(J),m.value=[]}},V=(J,ne)=>J[n.rowKey]===ne,I=(J,{node:ne})=>{x.value.companyId=ne.companyId,A(1)},B=J=>{var P;const ne=J[n.rowKey],ye=c.value.findIndex(M=>V(M,ne))>-1;(P=T.value)==null||P.select(J[n.rowKey],!ye),Z(J,ne)},Z=(J,ne)=>{le(m.value,ne)},L=J=>{var P;const ne=J[n.rowKey],ye=c.value.findIndex(M=>V(M,ne))>-1;(P=E.value)==null||P.select(J[n.rowKey],!ye),F(J,ne)},F=(J,ne)=>{le(h.value,ne)},G=J=>{var P;const ne=J[n.rowKey],ye=c.value.findIndex(M=>V(M,ne))>-1;(P=w.value)==null||P.select(J[n.rowKey],!ye),ae(J,ne)},ae=(J,ne)=>{le(f.value,ne)},le=(J,ne)=>{if(n.multiple){const ye=c.value.findIndex(P=>V(P,ne));ye>-1?c.value.splice(ye,1):c.value.push(J.find(P=>V(P,ne)))}else c.value=[J.find(ye=>V(ye,ne))]},U=(J,ne)=>{l.value=l.value.filter(ye=>ye!==J[n.rowKey]),c.value.splice(ne,1)},te=()=>{a("update:data",[...c.value]),a("change",[...c.value])},Q=async()=>{try{u.value=!0,s.value=!0,await Promise.all([N(),A(),O(),$()])}finally{u.value=!1}};return(J,ne)=>{const ye=e.resolveComponent("a-input-tag"),P=be,M=e.resolveComponent("a-button"),q=e.resolveComponent("a-input-group"),ee=e.resolveComponent("a-tag"),re=e.resolveComponent("a-input"),se=e.resolveComponent("a-tree"),ie=e.resolveComponent("a-table"),Ee=e.resolveComponent("a-tab-pane"),Je=e.resolveComponent("a-tabs"),pt=e.resolveComponent("a-spin"),Rt=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(q,null,{default:e.withCtx(()=>[!J.$slots.default&&o.required?(e.openBlock(),e.createBlock(kr,{key:0,modelValue:e.unref(i),"onUpdate:modelValue":ne[0]||(ne[0]=ve=>e.isRef(i)?i.value=ve:null),"max-tag-count":3,validator:o.validator,placeholder:J.$t("Please select roles")},null,8,["modelValue","validator","placeholder"])):e.createCommentVNode("",!0),!J.$slots.default&&!o.required?(e.openBlock(),e.createBlock(ye,{key:1,modelValue:e.unref(i),"onUpdate:modelValue":ne[1]||(ne[1]=ve=>e.isRef(i)?i.value=ve:null),"max-tag-count":3,"disabled-input":!0,placeholder:J.$t("Please select roles")},null,8,["modelValue","placeholder"])):e.createCommentVNode("",!0),e.renderSlot(J.$slots,"default"),e.createVNode(M,{type:"primary",onClick:Q},{default:e.withCtx(()=>[e.createVNode(P,{name:"Search"})]),_:1})]),_:3}),e.createVNode(Rt,{visible:e.unref(s),"onUpdate:visible":ne[9]||(ne[9]=ve=>e.isRef(s)?s.value=ve:null),width:"80vw",title:J.$t(o.modalTitle),onOk:te},{default:e.withCtx(()=>[e.createVNode(pt,{loading:e.unref(u),style:{width:"100%",height:"calc(100vh - 142px)",overflow:"hidden","box-sizing":"border-box"}},{default:e.withCtx(()=>[e.createElementVNode("div",J8,[e.createElementVNode("div",X8,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(ve,Ht)=>(e.openBlock(),e.createBlock(ee,{key:ve[o.rowKey],color:"arcoblue",closable:"",onClose:xe=>U(ve,Ht)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(ve.name),1)]),_:2},1032,["onClose"]))),128))]),e.createVNode(Je,{"active-key":e.unref(_),"onUpdate:activeKey":ne[8]||(ne[8]=ve=>e.isRef(_)?_.value=ve:null)},{default:e.withCtx(()=>[e.createVNode(Ee,{key:"normal",title:J.$t("Normal Roles")},{default:e.withCtx(()=>[e.createElementVNode("div",Q8,[e.createElementVNode("div",eh,[e.createVNode(q,null,{default:e.withCtx(()=>[e.createVNode(re,{modelValue:e.unref(g),"onUpdate:modelValue":ne[2]||(ne[2]=ve=>e.isRef(g)?g.value=ve:null),placeholder:J.$t("Please enter a name"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(M,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(P,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",th,[e.createVNode(se,{ref_key:"orgTreeRef",ref:p,data:e.unref(S),"field-names":{title:"name",key:"id"},size:"mini","block-node":"","default-expand-all":"",onSelect:I},null,8,["data"])])]),e.createElementVNode("div",nh,[e.createVNode(q,null,{default:e.withCtx(()=>[e.createVNode(re,{modelValue:e.unref(x).keyword,"onUpdate:modelValue":ne[3]||(ne[3]=ve=>e.unref(x).keyword=ve),placeholder:J.$t("Please enter a keyword or name"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(M,{type:"primary",onClick:ne[4]||(ne[4]=ve=>A(1))},{default:e.withCtx(()=>[e.createVNode(P,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",oh,[e.createVNode(ie,{ref_key:"normalRoleTableRef",ref:T,"selected-keys":e.unref(l),"onUpdate:selectedKeys":ne[5]||(ne[5]=ve=>e.isRef(l)?l.value=ve:null),"row-key":o.rowKey,"row-selection":e.unref(D),scroll:{y:"100%"},columns:e.unref(b),data:e.unref(m),pagination:{current:e.unref(C).pageNum,pageSize:e.unref(C).pageSize,itemCount:e.unref(y),pageSizeOptions:[15,30,50,100],showTotal:!0,showPageSize:!0,onPageSizeChange:ve=>(e.unref(C).pageSize=ve)&&A(1),onChange:A},onRowClick:B,onSelect:Z},null,8,["selected-keys","row-key","row-selection","columns","data","pagination"])])])])]),_:1},8,["title"]),e.createVNode(Ee,{key:"company",title:J.$t("Matrix Company Roles")},{default:e.withCtx(()=>[e.createVNode(ie,{ref_key:"companyRoleTableRef",ref:E,"selected-keys":e.unref(l),"onUpdate:selectedKeys":ne[6]||(ne[6]=ve=>e.isRef(l)?l.value=ve:null),"row-key":o.rowKey,scroll:{y:"100%"},"row-selection":e.unref(D),columns:e.unref(b),data:e.unref(h),pagination:!1,onRowClick:L,onSelect:F},null,8,["selected-keys","row-key","row-selection","columns","data"])]),_:1},8,["title"]),e.createVNode(Ee,{key:"group",title:J.$t("Matrix Group Roles")},{default:e.withCtx(()=>[e.createVNode(ie,{ref_key:"groupRoleTableRef",ref:w,"selected-keys":e.unref(l),"onUpdate:selectedKeys":ne[7]||(ne[7]=ve=>e.isRef(l)?l.value=ve:null),"row-key":o.rowKey,scroll:{y:"100%"},"row-selection":e.unref(D),columns:e.unref(b),data:e.unref(f),pagination:!1,onRowClick:G,onSelect:ae},null,8,["selected-keys","row-key","row-selection","columns","data"])]),_:1},8,["title"])]),_:1},8,["active-key"])])]),_:1},8,["loading"])]),_:1},8,["visible","title"])],64)}}}),ah={class:"tag-input-flex"},rh={class:"header-tags"},ih={class:"tag-input-grid",style:{"--columns":"360px 1fr"}},sh={class:"left-org-tree"},lh={class:"tree-content"},ch={class:"right-table"},uh={class:"table-content"},xr=e.defineComponent({name:"UserTagInput",__name:"UserTagInput",props:{data:{type:Array,default:()=>[]},modalTitle:{type:String,default:"Person selection"},multiple:{type:Boolean,default:!0},rowKey:{type:String,default:"id"},required:{type:Boolean,default:!0},validator:{type:Function,default:void 0}},emits:["update:data","change"],setup(o,{emit:t}){const n=o,a=t,{t:r}=Le.useI18n(),i=e.computed({get:()=>Array.isArray(e.toRaw(n.data))?n.data.map(V=>V.name):[],set:V=>{const I=c.value.filter(B=>V.includes(B.name));a("update:data",I),a("change",I)}}),s=e.ref(!1),l=e.ref([]),c=e.ref([]);e.watch(()=>n.data,()=>{l.value=(n.data||[]).map(V=>V[n.rowKey]),c.value=[...n.data||[]]},{immediate:!0,deep:!0});const u=e.ref(!1),d=e.ref([]),p=e.ref(),m=e.ref([]),f=e.ref(0),h=e.ref(""),y=e.ref({pageSize:15,pageNum:1}),g=e.ref({companyId:"",keyword:""}),C=e.reactive({type:n.multiple?"checkbox":"radio",showCheckedAll:!1,onlyCurrent:!1}),x=e.ref(),D=e.computed(()=>[{title:r("Person name"),dataIndex:"name"},{title:r("Mobile phone"),dataIndex:"mobile"},{title:r("Mail"),dataIndex:"mail"},{title:r("Company name"),dataIndex:"companyName"},{title:r("Dept name"),dataIndex:"deptName"}]),_=e.computed(()=>En(d.value,"name",h.value)),T=V=>({id:V.id,name:V.name,code:V.code,email:V.email,mobile:V.mobile,companyName:V.companyName,deptName:V.deptName}),E=async()=>{var V;try{d.value=await Al(),await e.nextTick(),(V=p.value)==null||V.expandAll(!0)}catch(I){console.error(I),d.value=[]}},w=async V=>{try{u.value=!0,V&&(y.value.pageNum=V);const{data:{rows:I,total:B}}=await J2({pager:y.value,entity:g.value});m.value=(I||[]).map(T),f.value=B}catch(I){console.error(I),m.value=[],f.value=0}finally{u.value=!1}},b=(V,I)=>V[n.rowKey]===I,S=(V,{node:I})=>{g.value.companyId=I.companyId,w(1)},k=V=>{var Z;const I=V[n.rowKey],B=c.value.findIndex(L=>b(L,I))>-1;(Z=x.value)==null||Z.select(V[n.rowKey],!B),N(V,I)},N=(V,I)=>{if(n.multiple){const B=c.value.findIndex(Z=>b(Z,I));B>-1?c.value.splice(B,1):c.value.push(m.value.find(Z=>b(Z,I)))}else c.value=[m.value.find(B=>b(B,I))]},A=(V,I)=>{l.value=l.value.filter(B=>B!==V[n.rowKey]),c.value.splice(I,1)},O=()=>{a("update:data",[...c.value]),a("change",[...c.value])},$=async()=>{try{u.value=!0,s.value=!0,await E(),await w()}finally{u.value=!1}};return(V,I)=>{const B=e.resolveComponent("a-input-tag"),Z=be,L=e.resolveComponent("a-button"),F=e.resolveComponent("a-input-group"),G=e.resolveComponent("a-tag"),ae=e.resolveComponent("a-input"),le=e.resolveComponent("a-tree"),U=e.resolveComponent("a-table"),te=e.resolveComponent("a-spin"),Q=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(F,null,{default:e.withCtx(()=>[!V.$slots.default&&o.required?(e.openBlock(),e.createBlock(kr,{key:0,modelValue:e.unref(i),"onUpdate:modelValue":I[0]||(I[0]=J=>e.isRef(i)?i.value=J:null),"max-tag-count":3,validator:o.validator,placeholder:V.$t("Please select person")},null,8,["modelValue","validator","placeholder"])):e.createCommentVNode("",!0),!V.$slots.default&&!o.required?(e.openBlock(),e.createBlock(B,{key:1,modelValue:e.unref(i),"onUpdate:modelValue":I[1]||(I[1]=J=>e.isRef(i)?i.value=J:null),"max-tag-count":3,"disabled-input":!0,placeholder:V.$t("Please select person")},null,8,["modelValue","placeholder"])):e.createCommentVNode("",!0),e.renderSlot(V.$slots,"default"),e.createVNode(L,{type:"primary",onClick:$},{default:e.withCtx(()=>[e.createVNode(Z,{name:"Search"})]),_:1})]),_:3}),e.createVNode(Q,{visible:e.unref(s),"onUpdate:visible":I[6]||(I[6]=J=>e.isRef(s)?s.value=J:null),width:"80vw",title:V.$t(o.modalTitle),onOk:O},{default:e.withCtx(()=>[e.createVNode(te,{loading:e.unref(u),style:{width:"100%",height:"calc(100vh - 142px)",overflow:"hidden","box-sizing":"border-box"}},{default:e.withCtx(()=>[e.createElementVNode("div",ah,[e.createElementVNode("div",rh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(J,ne)=>(e.openBlock(),e.createBlock(G,{key:J[o.rowKey],color:"arcoblue",closable:"",onClose:ye=>A(J,ne)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(J.name),1)]),_:2},1032,["onClose"]))),128))]),e.createElementVNode("div",ih,[e.createElementVNode("div",sh,[e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(ae,{modelValue:e.unref(h),"onUpdate:modelValue":I[2]||(I[2]=J=>e.isRef(h)?h.value=J:null),placeholder:V.$t("Please enter a name"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(L,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(Z,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",lh,[e.createVNode(le,{ref_key:"orgTreeRef",ref:p,data:e.unref(_),"field-names":{title:"name",key:"id"},size:"mini","block-node":"","default-expand-all":"",onSelect:S},null,8,["data"])])]),e.createElementVNode("div",ch,[e.createVNode(F,null,{default:e.withCtx(()=>[e.createVNode(ae,{modelValue:e.unref(g).keyword,"onUpdate:modelValue":I[3]||(I[3]=J=>e.unref(g).keyword=J),placeholder:V.$t("Please enter your job number, name, and mobile phone number"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(L,{type:"primary",onClick:I[4]||(I[4]=J=>w(1))},{default:e.withCtx(()=>[e.createVNode(Z,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",uh,[e.createVNode(U,{ref_key:"personTableRef",ref:x,"selected-keys":e.unref(l),"onUpdate:selectedKeys":I[5]||(I[5]=J=>e.isRef(l)?l.value=J:null),"row-key":o.rowKey,scroll:{y:"100%"},"row-selection":e.unref(C),columns:e.unref(D),data:e.unref(m),pagination:{current:e.unref(y).pageNum,pageSize:e.unref(y).pageSize,itemCount:e.unref(f),pageSizeOptions:[15,30,50,100],showTotal:!0,showPageSize:!0,onPageSizeChange:J=>(e.unref(y).pageSize=J)&&w(1),onChange:w},onRowClick:k,onSelect:N},null,8,["selected-keys","row-key","row-selection","columns","data","pagination"])])])])])]),_:1},8,["loading"])]),_:1},8,["visible","title"])],64)}}}),dh={class:"variable-title-input"},ph={class:"tag-input-flex min-width"},mh={class:"header-tags"},fh={class:"is-active"},hh=e.createElementVNode("code",null,"i",-1),vh={class:"tag-input-equal-grid min-width",style:{"--columns":"1fr 2fr"}},gh={class:"half-grid_item"},bh={class:"half-grid_item-header"},yh={class:"half-grid_item"},Eh={class:"half-grid_item-header"},wh=e.defineComponent({name:"VariableTitleInput",__name:"VariableTitleInput",props:{value:{type:String,default:""},processId:{type:String,default:""},confirm:{type:Function,default:()=>Promise.resolve(!0)}},emits:["update:value","change"],setup(o,{emit:t}){const n=o,a=t,r=/{(.*?)}/g,i=e.ref(!1),s=e.ref(!1),l=e.ref(0),c=e.ref([]),u=e.ref({}),d=e.ref([]),p=e.ref({}),m=e.ref(),f=e.ref([]),h=async()=>{var b;try{const{data:S}=await Dl({formType:0,formCode:n.processId});c.value=S,u.value=S.reduce((N,A)=>(A.value=`form.${A.makModel}`,(N[A.value]=A.labelName)&&N),{});const{data:k}=await O8();d.value=Tr(k,"id","pid"),p.value=k.reduce((N,A)=>(N[A.sn]=A.name)&&N,{}),await e.nextTick(),(b=m.value)==null||b.expandAll(!0)}catch(S){c.value=[],d.value=[],console.error(S)}},y=()=>{f.value.splice(l.value,0,{value:"",isInput:!0}),l.value+=1},g=b=>{f.value.splice(l.value,0,{value:b.value}),l.value+=1},C=(b,{node:S})=>{S.status==="2"||S.children&&S.children.length||(f.value.splice(l.value,0,{value:S.sn}),l.value+=1)},x=async()=>{s.value=!0,i.value=!0,await h(),s.value=!1},D=async()=>{const b=f.value.reduce((S,k)=>(k.isInput?S+=k.value:S+=`\${${k.value}}`,S),"");return a("update:value",b),a("change",b),await n.confirm(b)},_=b=>{var S;if(((S=document.activeElement)==null?void 0:S.tagName.toLowerCase())!=="input")switch(b.code.toLocaleLowerCase()){case"keyi":y();break;case"delete":E(!1);break;case"backspace":E(!0);break;case"arrowleft":T(-1);break;case"arrowright":T(1);break}},T=b=>{l.value+=b,l.value>f.value.length?l.value=f.value.length:l.value<0&&(l.value=0)},E=b=>{b&&(l.value-=1),f.value.splice(l.value,1),l.value<0&&(l.value=0)},w=b=>{const S=[];(b?b.split("$"):[]).forEach(N=>{if(!N.trim())return;const A=N.match(r);if(!A||!A.length){S.push({isInput:!0,value:N});return}const O=N.indexOf("}");S.push({value:N.slice(1,O)}),O+1<N.length&&S.push({isInput:!0,value:N.slice(O+1)})}),l.value=S.length,f.value=S};return e.watch(()=>i.value,b=>{b?document.addEventListener("keydown",_):document.removeEventListener("keydown",_)}),e.watch(()=>n.value,b=>w(b),{immediate:!0,deep:!0}),(b,S)=>{const k=e.resolveComponent("a-textarea"),N=be,A=e.resolveComponent("a-button"),O=e.resolveComponent("a-tag"),$=e.resolveComponent("a-input"),V=e.resolveComponent("a-alert"),I=e.resolveComponent("a-tree"),B=e.resolveComponent("a-spin"),Z=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",dh,[e.createVNode(k,{"model-value":o.value,autosize:{minRows:2,maxRows:4}},null,8,["model-value"]),e.createVNode(A,{type:"outline",style:{height:"auto"},onClick:x},{default:e.withCtx(()=>[e.createVNode(N,{name:"Plus"})]),_:1})]),e.createVNode(Z,{visible:e.unref(i),"onUpdate:visible":S[0]||(S[0]=L=>e.isRef(i)?i.value=L:null),width:"640px",title:b.$t("Customize the process title"),"on-before-ok":D,"on-before-cancel":w(o.value)},{default:e.withCtx(()=>[e.createVNode(B,{loading:e.unref(s),style:{width:"100%",height:"calc(100vh - 142px)",overflow:"hidden","box-sizing":"border-box"}},{default:e.withCtx(()=>[e.createElementVNode("div",ph,[e.createElementVNode("div",mh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(f),(L,F)=>(e.openBlock(),e.createElementBlock("div",{key:F,class:e.normalizeClass({"tag-item":!0,"is-active":e.unref(l)===F})},[L.isInput?(e.openBlock(),e.createBlock($,{key:1,modelValue:L.value,"onUpdate:modelValue":G=>L.value=G,onFocus:G=>l.value=F+1},null,8,["modelValue","onUpdate:modelValue","onFocus"])):(e.openBlock(),e.createBlock(O,{key:0,color:"arcoblue",onClick:G=>l.value=F+1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)[L.value]||e.unref(u)[L.value]||L.value),1)]),_:2},1032,["onClick"]))],2))),128)),e.withDirectives(e.createElementVNode("div",fh,null,512),[[e.vShow,e.unref(l)===e.unref(f).length]])]),e.createVNode(V,{class:"header-tags_tip"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("Press"))+" ",1),hh,e.createTextVNode(" "+e.toDisplayString(b.$t("insert a string")),1)]),_:1}),e.createElementVNode("div",vh,[e.createElementVNode("div",gh,[e.createElementVNode("div",bh,e.toDisplayString(b.$t("Form fields")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),L=>(e.openBlock(),e.createBlock(A,{key:L.value,onClick:F=>g(L)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.labelName),1)]),_:2},1032,["onClick"]))),128))]),e.createElementVNode("div",yh,[e.createElementVNode("div",Eh,e.toDisplayString(b.$t("Basic Information")),1),e.createVNode(I,{ref_key:"infoTreeRef",ref:m,data:e.unref(d),"field-names":{title:"name",key:"id"},size:"mini","block-node":"","default-expand-all":"",onSelect:C},null,8,["data"])])])])]),_:1},8,["loading"])]),_:1},8,["visible","title","on-before-cancel"])],64)}}}),Ch={class:"edit-item_label"},_h={key:0,style:{"max-width":"40vw","word-break":"break-word","white-space":"normal",display:"inline-block",overflow:"hidden"}},Nh=["title"],Sh={class:"edit-item_content"},Th={class:"edit-item_form-item"},kh={key:0,class:"edit-item_description"},xh={key:0},Vh=e.defineComponent({name:"EditItem",__name:"EditItem",props:{label:{type:String,default:""},description:{type:String,default:""},tooltip:{type:String,default:""},align:{type:String,default:"horizontal"},prefix:{type:[String,Boolean],default:"："},textAlign:{type:String,default:"right",validator:o=>["left","center","right"].includes(o)},labelWidth:{type:[Number,String],default:100}},setup(o){const t=o,n=e.computed(()=>({"--label-width":typeof t.labelWidth=="string"?t.labelWidth:`${t.labelWidth}px`,"--text-align":t.textAlign,"--el-align":t.align==="vertical"?"column":"row"})),a=e.computed(()=>t.prefix?typeof t.prefix=="string"?`${t.label}${t.prefix}`:`${t.label}：`:t.label);return(r,i)=>{const s=e.resolveComponent("icon-question-circle-fill"),l=e.resolveComponent("a-popover");return e.openBlock(),e.createElementBlock("div",{class:"edit-item",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",Ch,[o.tooltip||r.$slots.tooltip?(e.openBlock(),e.createBlock(l,{key:0,position:"tr"},{content:e.withCtx(()=>[r.$slots.tooltip?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",_h,e.toDisplayString(o.tooltip),1)),e.renderSlot(r.$slots,"tooltip",{},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(s,{style:{"margin-right":"6px"}})]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("span",{title:o.label},e.toDisplayString(a.value),9,Nh)]),e.createElementVNode("div",Sh,[e.createElementVNode("div",Th,[e.renderSlot(r.$slots,"default",{},void 0,!0)]),o.description||r.$slots.description?(e.openBlock(),e.createElementBlock("div",kh,[o.description?(e.openBlock(),e.createElementBlock("span",xh,e.toDisplayString(o.description),1)):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"description",{},void 0,!0)])):e.createCommentVNode("",!0)])],4)}}}),qe=kn(Vh,[["__scopeId","data-v-c01b6313"]]),st=e.defineComponent({name:"ValidateInput",__name:"ValidateInput",props:{modelValue:{type:String,default:void 0},validator:{type:Function,default:void 0}},emits:["update:modelValue","input"],setup(o,{emit:t}){const n=o,a=t,r=e.computed({get:()=>n.modelValue,set:s=>{a("update:modelValue",s),a("input",s)}}),i=e.computed(()=>{var s;return n.validator&&typeof n.validator=="function"?n.validator():!!((s=r.value)!=null&&s.length)});return(s,l)=>{const c=e.resolveComponent("icon-check-circle-fill"),u=e.resolveComponent("icon-exclamation-circle-fill"),d=e.resolveComponent("a-input");return e.openBlock(),e.createBlock(d,e.mergeProps({modelValue:e.unref(r),"onUpdate:modelValue":l[0]||(l[0]=p=>e.isRef(r)?r.value=p:null)},s.$attrs,{class:e.unref(i)?"feedback-success":"feedback-error"}),{suffix:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createBlock(c,{key:0,size:"16"})):(e.openBlock(),e.createBlock(u,{key:1,size:"16"}))]),_:1},16,["modelValue","class"])}}});function Ie(o){const t=o;let n=!1;const a=()=>{n=!0},r=()=>{Ct.removeListener("element-update",t),Ct.removeListener("element-update",a)};return e.onBeforeMount(()=>{Ct.hasListener("element-update",t)||(Ct.on("element-update",t),Ct.on("element-update",a))}),e.onMounted(()=>{!n&&t()}),e.onBeforeUnmount(()=>r()),[t,r]}const Ah=Math.max,Dh=Math.min;function xa(o,t){let n,a,r,i,s,l,c=0,u=!1,d=!1,p=!0;const m=o.delay||0;rp(o)&&(u=!!o.leading,d="maxWait"in o,r=d?Ah(o.maxWait||0,m):0,p="trailing"in o?!!o.trailing:p);function f(E){const w=n,b=a;return n=a=void 0,c=E,i=t.apply(b,w),i}function h(E){return c=E,s=setTimeout(C,m),u?f(E):i}function y(E){const w=E-l,b=E-c,S=m-w;return d?Dh(S,r-b):S}function g(E){const w=E-l,b=E-c;return l===void 0||w>=m||w<0||d&&b>=r}function C(){const E=Date.now();if(g(E))return x(E);s=setTimeout(C,y(E))}function x(E){return s=void 0,p&&n?f(E):(n=a=void 0,i)}function D(){s!==void 0&&clearTimeout(s),c=0,n=l=a=s=void 0}function _(){return s===void 0?i:x(Date.now())}function T(...E){const w=Date.now(),b=g(w);if(n=E,a=this,l=w,b){if(s===void 0)return h(l);if(d)return s=setTimeout(C,m),f(l)}return s===void 0&&(s=setTimeout(C,m)),i}return T.cancel=D,T.flush=_,T}function So(o,t){return o&&o.get?o.get(t):o&&o[t]}const Rh=(o,t,n,a)=>{o==null||o.updateProperties(t,{[n]:Il(a)})},Fe=(o,t,n,a,r,i=!0)=>{o==null||o.updateModdleProperties(t,n,{[a]:i?Il(r):r})},it=(o,t,n,a,r=!0)=>{r?o==null||o.updateModdleProperties(t,n,td(a)):o==null||o.updateModdleProperties(t,n,a)},Ih=(o,t,n,a,r=!0)=>{o==null||o.updateModdleProperties(t,n,r?td(a):a)},Il=o=>{if(o!=="")return o},td=(o,t=!1)=>{const n={};for(const a in o)n[t?`flowable:${a}`:a]=Il(o[a]);return n},Oh=/\s/,$h=/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i,Lh=/^[a-z_][\w-.]*$/i;function Bh(o){return Oh.test(o)}function Po(o,t){if(!o)return;const n=nd(t);if(n)return n;const a=o.$model.ids.assigned(t);if(a&&a!==o)return"ID 必须是唯一的"}function nd(o){if(Bh(o))return"ID 不能包含空格";if(!Lh.test(o))return $h.test(o)?"ID 不能包含前缀(不能有 : 存在)":"ID 必须以字母或者_作为开头，只能存在字母、数字、_ 和 -"}function od(o){if(!o)return Promise.reject("ID 不能为空");const t=nd(o);return t?Promise.reject(t):Promise.resolve()}function Ye(o,t){const n={required:!0,message:o},a=["blur","change","input"];return t&&(n.validator=t),{rules:n,validateTrigger:a}}function Ph(o,t){const n=t.create("bpmn:CategoryValue"),a=t.create("bpmn:Category",{categoryValue:[n]});return I4.add(o.get("rootElements"),a,-1),z.getBusinessObject(a).$parent=o,z.getBusinessObject(n).$parent=a,n}function Mh(o,t,n){const a=z.getBusinessObject(t).$parent;o.categoryValueRef=Ph(a,n)}function Fh(o){if(z.is(o,"bpmn:TextAnnotation"))return o.businessObject.text;if(z.is(o,"bpmn:Group")){const t=z.getBusinessObject(o),n=t==null?void 0:t.categoryValueRef;return n==null?void 0:n.value}return o.businessObject.name}function jh(o,t,n,a){const r=o.get("modeling"),i=o.get("canvas"),s=o.get("bpmnFactory");if(z.is(t,"bpmn:TextAnnotation"))return Rh(r,t,"text",a);if(z.is(t,"bpmn:Group")){const l=z.getBusinessObject(t);return l.categoryValueRef||Mh(l,i==null?void 0:i.getRootElement(),s),r==null?void 0:r.updateLabel(t,a)}Fe(o.get("modeling"),t,n,"name",a)}function qh(o,t,n,a){const r=Po(n,a);if(r&&r.length)return r;z.is(t,"bpmn:Collaboration")?Fe(o.get("modeling"),t,n,"id",a):o.get("modeling").updateProperties(t,{id:a})}function Uh(o,t,n){const a=t.businessObject.get("processRef");Fe(o.get("modeling"),t,a,"id",n)}function Hh(o,t,n){const a=t.businessObject.get("processRef");Fe(o.get("modeling"),t,a,"name",n)}function Zh(o,t,n,a){Fe(o.get("modeling"),t,n,"isExecutable",a)}function vn(o,t,n){return{cmd:"element.updateModdleProperties",context:{element:o,moddleElement:t,properties:n}}}function Te(o,t){try{o.get("commandStack").execute("panel.multi-command",t)}catch(n){console.error("Properties update error."),console.error(n)}}function Ol(o,t){try{o.get("commandStack").execute("element.updateModdleProperties",t)}catch(n){console.error("Properties update error."),console.error(n)}}function Es(o,t){const n=Lt(o);for(const a of n)if(t(a))return a}function zh(o,t){const n=Lt(o);return n.length?n.filter(t):[]}function Mt(o,t,n,a){return Array.isArray(a)||(a=[a]),[{cmd:"element.updateModdleProperties",context:()=>{let r=n.get("extensionElements");if(r){for(const i of a)i.$parent=r;return{element:t,moddleElement:r,properties:{values:[...r.get("values"),...a]}}}r=Pe(o,"bpmn:ExtensionElements",{values:a},n);for(const i of a)i.$parent=r;return{element:t,moddleElement:n,properties:{extensionElements:r}}}}]}function Dt(o,t,n,a){const r=Mt(o,t,n,a);Te(o,r)}function ea(o,t,n,a){Array.isArray(a)||(a=[a]);const r=n.get("extensionElements"),i=r.get("values").filter(s=>!a.includes(s));Ol(o,{element:t,moddleElement:r,properties:{values:i}})}const ws=(o,t,n)=>{const a=[];return a.push({cmd:"element.updateModdleProperties",context:()=>{let r=t.businessObject.get("extensionElements");if(!r)return r=Pe(o,"bpmn:ExtensionElements",{values:[Pe(o,"flowable:AssigneeType",{body:n})]}),{element:t,moddleElement:t.businessObject,properties:{extensionElements:r}};const i=ge(t.businessObject,"AssigneeType")[0];return i?{element:t,moddleElement:i,properties:{body:n}}:{element:t,moddleElement:r,properties:{values:[...r.get("values"),Pe(o,"flowable:AssigneeType",{body:n})]}}}}),n==="idm"&&a.push({cmd:"element.updateModdleProperties",context:()=>{let r=t.businessObject.get("extensionElements");if(!r)return r=Pe(o,"bpmn:ExtensionElements",{values:[]}),{element:t,moddleElement:t.businessObject,properties:{extensionElements:r}};const i=[...r.get("values"),Ve(o,"IdmCandidateUsers",{body:""},r),Ve(o,"IdmCandidateGroups",{body:""},r)];return ge(t.businessObject,"AssigneeType")[0]||i.push(Pe(o,"flowable:AssigneeType",{body:n})),{element:t,moddleElement:r,properties:{values:i}}}}),a},Gh=o=>({cmd:"element.updateModdleProperties",context:{element:o,moddleElement:o.businessObject,properties:{assignee:void 0,candidateUsers:void 0,candidateGroups:void 0}}}),Kh=(o,t)=>({cmd:"element.updateModdleProperties",context:()=>{let n=t.businessObject.get("extensionElements");return n?{element:t,moddleElement:n,properties:{values:n.get("values").filter(a=>!z.is(a,"flowable:IdmCandidateUsers")&&!z.is(a,"flowable:IdmCandidateGroups"))}}:(n=Pe(o,"bpmn:ExtensionElements",{values:[]}),{element:t,moddleElement:t.businessObject,properties:{extensionElements:n}})}}),Wh=(o,t)=>({cmd:"element.updateModdleProperties",context:()=>{let n=t.businessObject.get("extensionElements");return n?{element:t,moddleElement:n,properties:{values:n.get("values").filter(a=>!z.is(a,"flowable:IdmAssignee"))}}:(n=Pe(o,"bpmn:ExtensionElements",{values:[]}),{element:t,moddleElement:t.businessObject,properties:{extensionElements:n}})}}),Gt=(o,t,n)=>{let a=o.businessObject;return z.is(o,"bpmn:Participant")&&(a=o.businessObject.get("processRef")),{cmd:"element.updateModdleProperties",context:{element:o,moddleElement:a,properties:{[t]:n}}}},ic=(o,t,n,a)=>({cmd:"element.updateModdleProperties",context:{element:o,moddleElement:t,properties:{[n]:a}}}),xt=(o,t,n,a="",r={})=>{var c;let i=t.businessObject;z.is(t,"bpmn:Participant")&&(i=t.businessObject.get("processRef"));const s=i.get("extensionElements");if(!s)return Mt(o,t,i,Ve(o,n,{body:a,...r}))[0];const l=(c=ge(i,n))==null?void 0:c[0];return l?{cmd:"element.updateModdleProperties",context:{element:t,moddleElement:l,properties:{body:a,...r}}}:{cmd:"element.updateModdleProperties",context:()=>({element:t,moddleElement:s,properties:{values:[...s.get("values"),Ve(o,n,{body:a,...r},s)]}})}};var Yh={VITE_APP_BASE_ADDRESS:"",BASE_URL:"/",MODE:"comp",DEV:!1,PROD:!0,SSR:!1};const Jh=e.defineComponent({name:"ShapeGeneration",__name:"ShapeGeneration",setup(o){const t=Yh.VITE_APP_ID_EDITABLE==="true",n=e.inject(De),a=e.inject(we),r=()=>{const M=n.value;let q=z.getBusinessObject(M);z.is(M,"bpmn:Participant")&&(q=M.businessObject.get("processRef"));const ee=a.value.get("modeling");return{element:M,businessObject:q,modeling:ee,modeler:a.value}},i=e.ref(),s=e.ref(),l=M=>{s.value=Fh(M)||"",i.value=M.businessObject.id},c=()=>{const{element:M}=r();return!Po(M.businessObject,i.value)},u=xa({delay:0,trailing:!0},()=>{const{element:M}=r();jh(a.value,M,M.businessObject,s.value)}),d=xa({delay:0,trailing:!0},()=>{const{element:M,modeler:q}=r();qh(q,M,M.businessObject,i.value)}),p=e.ref(!1),m=e.ref(!1),f=e.ref(),h=e.ref(),y=e.ref(),g=e.ref(),C=e.ref(),x=e.ref(),D=e.ref(),_=e.ref(),T=M=>{g.value=void 0,C.value=x.value=void 0,D.value=_.value=void 0;const{businessObject:q}=r();if(m.value=z.is(M,"bpmn:Process"),p.value=ps(M),p.value&&(f.value=q.get("id"),h.value=q.get("name")),m.value||p.value){y.value=q.get("isExecutable");const ee=Lt(q),re=ee.find(Ee=>z.is(Ee,"flowable:ProcessNameExp"));g.value=re==null?void 0:re.get("body");const se=ee.find(Ee=>z.is(Ee,"flowable:IdmCandidateUsers"));C.value=JSON.parse((se==null?void 0:se.get("body"))||"[]"),x.value=q.get("candidateStarterUsers");const ie=ee.find(Ee=>z.is(Ee,"flowable:IdmCandidateGroups"));D.value=JSON.parse((ie==null?void 0:ie.get("body"))||"[]"),_.value=q.get("candidateStarterGroups")}},E=()=>{const{businessObject:M}=r();return!Po(M,f.value)},w=M=>{const{element:q,modeler:ee}=r();Uh(ee,q,M)},b=M=>{const{element:q,modeler:ee}=r();Hh(ee,q,M)},S=M=>{const{element:q,businessObject:ee}=r();Zh(a.value,q,ee,M)},k=async M=>{try{const{businessObject:q}=r(),ee=q.id,{success:re}=await I8({processNameExp:M,modelKey:ee});return re}catch{return!1}},N=M=>{const{element:q,modeler:ee}=r(),re=[xt(ee,q,"ProcessNameExp",M)];Te(ee,re)},A=()=>{const{element:M,modeler:q}=r(),ee=C.value,re=JSON.stringify(ee),se=ee.map(Ee=>Ee.code).toString(),ie=[Gt(M,"candidateStarterUsers",se),xt(q,M,"IdmCandidateUsers",re)];return Te(q,ie)},O=()=>{const{element:M,modeler:q}=r(),ee=[Gt(M,"candidateStarterUsers",x.value),xt(q,M,"IdmCandidateUsers","[]")];return Te(q,ee)},$=()=>{const{element:M,modeler:q}=r(),ee=D.value,re=JSON.stringify(ee),se=ee.map(Ee=>Ee.sn).toString(),ie=[Gt(M,"candidateStarterGroups",se),xt(q,M,"IdmCandidateGroups",re)];return Te(q,ie)},V=()=>{const{element:M,modeler:q}=r(),ee=[Gt(M,"candidateStarterGroups",_.value),xt(q,M,"IdmCandidateGroups","[]")];return Te(q,ee)},I=e.ref(),B=e.ref(),Z=M=>{z.is(M,"bpmn:Activity")&&!z.is(M,"bpmn:SubProcess")?(B.value=!0,I.value=M.businessObject.get("async")):B.value=!1},L=M=>{const{element:q,modeling:ee}=r();Fe(ee,q,q.businessObject,"async",M)},F=e.ref(),G=e.ref(),ae=M=>{z.is(M,"bpmn:StartEvent")&&vr(M)?(F.value=!0,G.value=M.businessObject.get("initiator")):F.value=!1},le=xa({delay:0,trailing:!0},M=>{const{element:q,modeling:ee}=r();Fe(ee,q,q.businessObject,"initiator",M)}),U=e.ref(),te=e.ref(!1),Q=e.ref(),J=M=>{z.is(M,"bpmn:UserTask")?(U.value=!0,te.value=!0,Q.value=M.businessObject.get("skipExpression")):(U.value=!1,te.value=!1)},ne=xa({delay:0,trailing:!0},M=>{const{element:q,modeling:ee}=r();Fe(ee,q,q.businessObject,"skipExpression",M)}),ye=()=>{const{element:M,modeling:q}=r(),ee={skipExpression:"${initiator == ''}",name:"提交人",assignee:"${initiator}"};it(q,M,M.businessObject,{...ee});const re=[{cmd:"element.updateModdleProperties",context:{element:M,moddleElement:M.businessObject,properties:{...ee}}},...ws(a.value,M,"static")];return Te(a.value,re)},P=()=>{const{element:M}=r();l(M),Z(M),ae(M),J(M),T(M)};return Ie(()=>P()),(M,q)=>{const ee=be,re=st,se=e.resolveComponent("a-input"),ie=qe,Ee=e.resolveComponent("a-button"),Je=wh,pt=e.resolveComponent("a-switch"),Rt=xr,ve=ed,Ht=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(Ht,{key:"ShapeGeneration"},{header:e.withCtx(()=>[e.createVNode(ee,{name:"Box"}),e.createTextVNode(e.toDisplayString(M.$t("ShapeGeneration")),1)]),default:e.withCtx(()=>[e.createVNode(ie,{label:M.$t("Id"),tooltip:M.$t("IDs must conform to BPMN 2.0 rules, must start with a letter or _, can only have letters, numbers, _ and -, and must be unique within a single process")},{default:e.withCtx(()=>[t?(e.openBlock(),e.createBlock(re,{key:0,modelValue:e.unref(i),"onUpdate:modelValue":q[0]||(q[0]=xe=>e.isRef(i)?i.value=xe:null),validator:c,onInput:e.unref(d)},null,8,["modelValue","onInput"])):(e.openBlock(),e.createBlock(se,{key:1,modelValue:e.unref(i),"onUpdate:modelValue":q[1]||(q[1]=xe=>e.isRef(i)?i.value=xe:null),maxlength:32,disabled:""},null,8,["modelValue"]))]),_:1},8,["label","tooltip"]),e.createVNode(ie,{label:M.$t("Name")},{description:e.withCtx(()=>[e.unref(te)?(e.openBlock(),e.createBlock(Ee,{key:0,size:"mini",type:"primary",onClick:ye},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.$t("Set as the author")),1)]),_:1})):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(se,{"model-value":e.unref(s),"onUpdate:modelValue":q[2]||(q[2]=xe=>e.isRef(s)?s.value=xe:null),maxlength:32,placeholder:M.$t("Please enter a name"),clearable:"",onInput:e.unref(u)},null,8,["model-value","placeholder","onInput"])]),_:1},8,["label"]),e.unref(p)?(e.openBlock(),e.createBlock(ie,{key:0,label:M.$t("ProcessId"),tooltip:M.$t("IDs must conform to BPMN 2.0 rules, must start with a letter or _, can only have letters, numbers, _ and -, and must be unique within a single process")},{default:e.withCtx(()=>[t?(e.openBlock(),e.createBlock(re,{key:0,modelValue:e.unref(f),"onUpdate:modelValue":q[3]||(q[3]=xe=>e.isRef(f)?f.value=xe:null),validator:E,onInput:w},null,8,["modelValue"])):(e.openBlock(),e.createBlock(se,{key:1,modelValue:e.unref(f),"onUpdate:modelValue":q[4]||(q[4]=xe=>e.isRef(f)?f.value=xe:null),maxlength:32,disabled:""},null,8,["modelValue"]))]),_:1},8,["label","tooltip"])):e.createCommentVNode("",!0),e.unref(p)?(e.openBlock(),e.createBlock(ie,{key:1,label:M.$t("ProcessName")},{default:e.withCtx(()=>[e.createVNode(se,{modelValue:e.unref(h),"onUpdate:modelValue":q[5]||(q[5]=xe=>e.isRef(h)?h.value=xe:null),maxlength:"32",clearable:"",onChange:b},null,8,["modelValue"])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(m)||e.unref(p)?(e.openBlock(),e.createBlock(ie,{key:2,label:M.$t("CustomTitle")},{default:e.withCtx(()=>[e.createVNode(Je,{value:e.unref(g),"onUpdate:value":q[6]||(q[6]=xe=>e.isRef(g)?g.value=xe:null),"process-id":e.unref(i),confirm:k,onChange:N},null,8,["value","process-id"])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(m)||e.unref(p)?(e.openBlock(),e.createBlock(ie,{key:3,label:M.$t("Executable")},{default:e.withCtx(()=>[e.createVNode(pt,{modelValue:e.unref(y),"onUpdate:modelValue":q[7]||(q[7]=xe=>e.isRef(y)?y.value=xe:null),onChange:S},null,8,["modelValue"])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(m)||e.unref(p)?(e.openBlock(),e.createBlock(ie,{key:4,label:M.$t("ProcessStarterUsers")},{default:e.withCtx(()=>[e.createVNode(Rt,{data:e.unref(C),"onUpdate:data":q[9]||(q[9]=xe=>e.isRef(C)?C.value=xe:null),required:!1,onChange:A},{default:e.withCtx(()=>[e.createVNode(se,{modelValue:e.unref(x),"onUpdate:modelValue":q[8]||(q[8]=xe=>e.isRef(x)?x.value=xe:null),onChange:O},null,8,["modelValue"])]),_:1},8,["data"])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(m)||e.unref(p)?(e.openBlock(),e.createBlock(ie,{key:5,label:M.$t("ProcessStarterGroups")},{default:e.withCtx(()=>[e.createVNode(ve,{data:e.unref(D),"onUpdate:data":q[11]||(q[11]=xe=>e.isRef(D)?D.value=xe:null),required:!1,onChange:$},{default:e.withCtx(()=>[e.createVNode(se,{modelValue:e.unref(_),"onUpdate:modelValue":q[10]||(q[10]=xe=>e.isRef(_)?_.value=xe:null),onChange:V},null,8,["modelValue"])]),_:1},8,["data"])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(B)?(e.openBlock(),e.createBlock(ie,{key:6,label:M.$t("AsyncContinuation")},{default:e.withCtx(()=>[e.createVNode(pt,{modelValue:e.unref(I),"onUpdate:modelValue":q[12]||(q[12]=xe=>e.isRef(I)?I.value=xe:null),onChange:L},null,8,["modelValue"])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(F)?(e.openBlock(),e.createBlock(ie,{key:7,label:M.$t("Starter")},{default:e.withCtx(()=>[e.createVNode(se,{modelValue:e.unref(G),"onUpdate:modelValue":q[13]||(q[13]=xe=>e.isRef(G)?G.value=xe:null),onInput:e.unref(le)},null,8,["modelValue","onInput"])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.unref(U)?(e.openBlock(),e.createBlock(ie,{key:8,label:M.$t("SkipExpression")},{default:e.withCtx(()=>[e.createVNode(se,{modelValue:e.unref(Q),"onUpdate:modelValue":q[14]||(q[14]=xe=>e.isRef(Q)?Q.value=xe:null),onInput:e.unref(ne)},null,8,["modelValue","onInput"])]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1})}}}),Xh=e.defineComponent({name:"GlobalConfiguration",__name:"GlobalConfiguration",setup(o){const{t}=Le.useI18n(),n=e.inject(De),a=e.inject(we),r=e.inject(Ko);let i;const s=e.computed(()=>[{title:t("Id"),ellipsis:!0,tooltip:!0,dataIndex:"id"},{title:t("Name"),ellipsis:!0,tooltip:!0,dataIndex:"name"},{title:t("Operation"),width:160,slotName:"operation"}]),l=e.ref([]),c=e.ref([]),u=e.ref([]),d=e.ref([]),p=[{key:"Message",icon:"Mail",data:l},{key:"Error",icon:"Zap",data:c},{key:"Signal",icon:"Triangle",data:u},{key:"Escalation",icon:"Navigation2",data:d}],m=e.computed(()=>u.value.length+c.value.length+l.value.length+d.value.length),f=e.ref(!1),h=e.ref(""),y=e.ref("Message"),g=e.ref({id:"",name:"",scope:""}),C=e.ref(0);let x=null;const D=e.shallowRef(null),_=Ye(t("Id"),od),T=Ye(t("NameCanNotBeEmpty")),E=Ye(t("ScopeCanNotBeEmpty")),w={create:{Message:"CreateNewMessage",Error:"CreateNewError",Signal:"CreateNewSignal",Escalation:"CreateNewEscalation"},edit:{Message:"EditMessage",Error:"EditError",Signal:"EditSignal",Escalation:"EditEscalation"}},b=()=>{var B,Z;if(u.value=[],l.value=[],c.value=[],d.value=[],!i)return;const V=i.get("rootElements"),I={message:{},error:{},signal:{},escalation:{}};for(const L of V){if(z.is(L,"bpmn:Signal")){u.value.push({...L}),I.signal[L.id]=L;continue}if(z.is(L,"bpmn:Message")){l.value.push({...L}),I.message[L.id]=L;continue}if(z.is(L,"bpmn:Error")){c.value.push({...L}),I.error[L.id]=L;continue}z.is(L,"bpmn:Escalation")&&(d.value.push({...L}),I.escalation[L.id]=L)}Gm("globalEvents",I),(Z=(B=a==null?void 0:a.value)==null?void 0:B.get("bpmnLinting"))==null||Z.update()},S=V=>{y.value=V,C.value=0,h.value=t(w.create[V]),V==="Signal"?g.value={id:wn(V),name:"",scope:"global"}:g.value={id:wn(V),name:""},f.value=!0,e.nextTick(()=>{var I;return(I=D.value)==null?void 0:I.clearValidate()})},k=(V,I)=>{C.value=1,y.value=I,h.value=t(w.edit[I]),g.value={...V},x=i.get("rootElements").find(B=>B.id===V.id),f.value=!0,e.nextTick(()=>{var B;return(B=D.value)==null?void 0:B.clearValidate()})},N=V=>{Fe(r("modeling"),n.value,i,"rootElements",[...i.get("rootElements").filter(I=>I.id!==V.id)])},A=()=>{var V;(V=D.value)==null||V.validate().then(I=>{if(I)return I;!i&&(i=on(n==null?void 0:n.value)),i&&(C.value>0?$():O())})},O=()=>{const V=Po(i,g.value.id);if(V)return Xt.Message.warning(V);const I=Pe(a.value,`bpmn:${y.value}`,{...g.value},i);Fe(r("modeling"),n.value,i,"rootElements",[...i.get("rootElements"),I]),f.value=!1,b()},$=()=>{const{id:V,name:I,scope:B}=g.value,Z=a.value.get("modeling");it(Z,i,x,{id:V,name:I,scope:B}),f.value=!1,b()};return Ie(()=>{var V;n!=null&&n.value&&(i=on((V=n==null?void 0:n.value)==null?void 0:V.businessObject),b())}),(V,I)=>{const B=be,Z=e.resolveComponent("a-tag"),L=e.resolveComponent("icon-plus"),F=e.resolveComponent("a-button"),G=e.resolveComponent("a-popconfirm"),ae=e.resolveComponent("a-table"),le=e.resolveComponent("a-collapse-item"),U=e.resolveComponent("a-collapse"),te=st,Q=e.resolveComponent("a-form-item"),J=e.resolveComponent("a-radio"),ne=e.resolveComponent("a-radio-group"),ye=e.resolveComponent("a-input"),P=e.resolveComponent("a-form"),M=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(le,{key:"GlobalConfiguration"},{header:e.withCtx(()=>[e.createVNode(B,{name:"Settings"}),e.createTextVNode(e.toDisplayString(V.$t("GlobalConfiguration"))+" ",1),e.createVNode(Z,{color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(m)),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(U,{bordered:!1,"expand-icon-position":"right",style:{"border-radius":"0"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(p,q=>e.createVNode(le,{key:`Global${q.key}`},{header:e.withCtx(()=>[e.createVNode(B,{name:q.icon,size:13},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(V.$t(`${q.key}List`)),1),e.createVNode(Z,{color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(q.data.value.length),1)]),_:2},1024)]),extra:e.withCtx(()=>[e.createVNode(F,{type:"text",size:"mini",onClick:e.withModifiers(ee=>S(q.key),["stop"])},{default:e.withCtx(()=>[e.createVNode(L,{style:{"margin-right":"4px"}}),e.createTextVNode(" "+e.toDisplayString(V.$t(`CreateNew${q.key}`)),1)]),_:2},1032,["onClick"])]),default:e.withCtx(()=>[e.createVNode(ae,{columns:e.unref(s),data:q.data.value,scroll:{y:240},pagination:!1},{operation:e.withCtx(({record:ee})=>[e.createVNode(F,{type:"text",onClick:re=>k(ee,q.key)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(G,{position:"left",content:V.$t("AreYouSureYouWantToDelete?"),"ok-text":V.$t("Confirm"),"cancel-text":V.$t("Cancel"),onOk:re=>N(ee)},{default:e.withCtx(()=>[e.createVNode(F,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:2},1032,["columns","data"])]),_:2},1024)),64))]),_:1}),e.createVNode(M,{visible:e.unref(f),"onUpdate:visible":I[5]||(I[5]=q=>e.isRef(f)?f.value=q:null),width:520,title:e.unref(h)},{footer:e.withCtx(()=>[e.createVNode(F,{onClick:I[4]||(I[4]=q=>f.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.$t("Cancel")),1)]),_:1}),e.createVNode(F,{type:"primary",onClick:A},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.$t("Confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(P,{ref_key:"modalFormRef",ref:D,model:e.unref(g),"label-align":"right","auto-label-width":""},{default:e.withCtx(()=>[e.createVNode(Q,e.mergeProps({label:V.$t("Id"),field:"id"},e.unref(_)),{default:e.withCtx(()=>[e.createVNode(te,{modelValue:e.unref(g).id,"onUpdate:modelValue":I[0]||(I[0]=q=>e.unref(g).id=q),placeholder:V.$t("Please enter an ID"),disabled:!!e.unref(C)},null,8,["modelValue","placeholder","disabled"])]),_:1},16,["label"]),e.createVNode(Q,e.mergeProps({label:V.$t("Name"),field:"name"},e.unref(T)),{default:e.withCtx(()=>[e.createVNode(te,{modelValue:e.unref(g).name,"onUpdate:modelValue":I[1]||(I[1]=q=>e.unref(g).name=q),placeholder:V.$t("Please enter a name")},null,8,["modelValue","placeholder"])]),_:1},16,["label"]),e.unref(y)==="Signal"?(e.openBlock(),e.createBlock(Q,e.mergeProps({key:0,label:V.$t("Scope"),field:"scope"},e.unref(E)),{default:e.withCtx(()=>[e.createVNode(ne,{modelValue:e.unref(g).scope,"onUpdate:modelValue":I[2]||(I[2]=q=>e.unref(g).scope=q),type:"button",size:"mini"},{default:e.withCtx(()=>[e.createVNode(J,{value:"global"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.$t("Global")),1)]),_:1}),e.createVNode(J,{value:"processInstance"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(V.$t("ProcessInstance")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label"])):e.createCommentVNode("",!0),e.unref(y)==="Escalation"?(e.openBlock(),e.createBlock(Q,{key:1,label:V.$t("EscalationCode"),field:"escalationCode"},{default:e.withCtx(()=>[e.createVNode(ye,{modelValue:e.unref(g).escalationCode,"onUpdate:modelValue":I[3]||(I[3]=q=>e.unref(g).escalationCode=q),placeholder:V.$t("Please enter a code")},null,8,["modelValue","placeholder"])]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["visible","title"])]),_:1})}}}),po=e.defineComponent({name:"ValidateSelect",__name:"ValidateSelect",props:{modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},validator:{type:Function,default:void 0}},emits:["update:modelValue","input","change"],setup(o,{emit:t}){const n=o,a=t,r=e.computed({get:()=>n.modelValue,set:s=>{a("update:modelValue",s),a("input",s),a("change",s)}}),i=e.computed(()=>n.validator&&typeof n.validator=="function"?n.validator():typeof n.modelValue=="string"||Wo(n.modelValue)?!!n.modelValue.length:!S0(r.value));return(s,l)=>{const c=e.resolveComponent("icon-check-circle-fill"),u=e.resolveComponent("icon-exclamation-circle-fill"),d=e.resolveComponent("a-select");return e.openBlock(),e.createBlock(d,e.mergeProps({modelValue:e.unref(r),"onUpdate:modelValue":l[0]||(l[0]=p=>e.isRef(r)?r.value=p:null)},s.$attrs,{class:"a-validate-select"}),{prefix:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["a-validate-select__suffix",e.unref(i)?"feedback-success":"feedback-error"])},[e.unref(i)?(e.openBlock(),e.createBlock(c,{key:0,size:"16"})):(e.openBlock(),e.createBlock(u,{key:1,size:"16"}))],2)]),default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["modelValue"])}}}),Qh=e.defineComponent({name:"ShapeSignal",__name:"ShapeSignal",setup(o){const t=e.inject(De),n=e.inject(we),a=e.ref([]),r=e.ref();let i=[],s;const l=()=>{const d=w2(t.value);r.value=d?d.get("id"):""},c=()=>{var d;s=on((d=t==null?void 0:t.value)==null?void 0:d.businessObject),i=Jo(s.get("rootElements"),"bpmn:Signal"),a.value=i.map(p=>({name:p.name,value:p.id}))},u=d=>{const p=[],m=Cl(t.value);let f;if(d==="new"){const h=wn("Signal");f=Pe(n.value,"bpmn:Signal",{id:h,name:h},s),d=f.get("id"),p.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:s,properties:{rootElements:[...s.get("rootElements"),f]}}})}f=f||gr(m,"bpmn:Signal",d),p.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:m,properties:{signalRef:f}}}),Te(n.value,p),r.value=d};return Ie(()=>{if(!(t!=null&&t.value)){r.value="",a.value=[];return}l(),c()}),(d,p)=>{const m=be,f=e.resolveComponent("a-option"),h=po,y=qe,g=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(g,{key:"ShapeSignal"},{header:e.withCtx(()=>[e.createVNode(m,{name:"Triangle"}),e.createTextVNode(e.toDisplayString(d.$t("ShapeSignal")),1)]),default:e.withCtx(()=>[e.createVNode(y,{label:d.$t("SelectSignal"),tooltip:d.$t("If there are no options, configure the signal event in the process global event")},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(r),"onUpdate:modelValue":p[0]||(p[0]=C=>e.isRef(r)?r.value=C:null),placeholder:d.$t("Please select Signal"),onChange:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),C=>(e.openBlock(),e.createBlock(f,{key:C.value,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","tooltip"])]),_:1})}}}),e7=e.defineComponent({name:"ShapeMessage",__name:"ShapeMessage",setup(o){Le.useI18n();const t=e.inject(De),n=e.inject(we),a=e.ref([]),r=e.ref();let i=[],s;const l=()=>{const d=C2(t.value);r.value=d?d.get("id"):""},c=()=>{var p;let d=[];s=on((p=t==null?void 0:t.value)==null?void 0:p.businessObject),i=Jo(s.get("rootElements"),"bpmn:Message"),a.value=d.concat(i.map(m=>({name:m.name,value:m.id})))},u=d=>{const p=[],m=hr(t.value);let f;if(d==="new"){const h=wn("Message");f=Pe(n.value,"bpmn:Message",{id:h,name:h},s),d=f.get("id"),p.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:s,properties:{rootElements:[...s.get("rootElements"),f]}}})}f=f||gr(m,"bpmn:Message",d),p.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:m,properties:{messageRef:f}}}),Te(n.value,p),r.value=d};return Ie(()=>{if(!(t!=null&&t.value)){r.value="",a.value=[];return}l(),c()}),(d,p)=>{const m=be,f=e.resolveComponent("a-option"),h=po,y=qe,g=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(g,{key:"ShapeMessage"},{header:e.withCtx(()=>[e.createVNode(m,{name:"Mail"}),e.createTextVNode(e.toDisplayString(d.$t("ShapeMessage")),1)]),default:e.withCtx(()=>[e.createVNode(y,{label:d.$t("SelectMessage"),tooltip:d.$t("If there are no options, configure the message event in the process global event")},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(r),"onUpdate:modelValue":p[0]||(p[0]=C=>e.isRef(r)?r.value=C:null),placeholder:d.$t("Please select Message"),onChange:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),C=>(e.openBlock(),e.createBlock(f,{key:C.value,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","tooltip"])]),_:1})}}}),ad=(o,t)=>{for(const n in t)o[n]?Array.isArray(o[n])?o[n]=[...new Set([...t[n],...o[n]])]:typeof o[n]=="object"&&(o[n]={...t[n],...o[n]}):o[n]=t[n];return o},t7=[{label:"SUNDAY",value:1},{label:"MONDAY",value:2},{label:"TUESDAY",value:3},{label:"WEDNESDAY",value:4},{label:"THURSDAY",value:5},{label:"FRIDAY",value:6},{label:"SATURDAY",value:7}],Va=new Date().getFullYear(),Wn={checkedType:"every",specify:[1],range:{from:1,to:2},average:{from:1,step:1}},n7={checkedType:"none",specify:[Va],range:{from:Va,to:Va+2},average:{from:Va,step:1}},Cs={checkedType:"everyDay",daySpecify:[1],weekdaySpecify:[1],dayRange:{from:1,to:2},weekdayRange:{from:1,to:2},dayAverage:{from:1,step:1},weekdayAverage:{from:1,step:1},beforeEndSpacialDay:1,lastSpecialWeekday:1,nearestWeekdaySpecialDay:1,specialAWeekday:{idx:1,weekday:1}},To=(o,t)=>{const n=t?ad(t,Wn):Wn;if(o==null||o==="")return n.checkedType="none",n;if(o==="*")return n.checkedType="every",n;if(o.indexOf("/")>-1){n.checkedType="average";const[a,r]=o.split("/");return n.average={from:Number(a).valueOf(),step:Number(r).valueOf()},n}if(o.indexOf("-")>-1){n.checkedType="range";const[a,r]=o.split("-");return n.range={from:Number(a).valueOf(),to:Number(r).valueOf()},n}return n.checkedType="specify",n.specify=o.split(",").map(a=>Number(a).valueOf()),n},o7=(o,t,n)=>{const a=n?ad(n,Cs):Cs;if(t==="?"){if(o==="*")return a.checkedType="everyDay",a;if(o==="L")return a.checkedType="beforeEndSpacialDay",a.beforeEndSpacialDay=1,a;if(o==="LW")return a.checkedType="lastWeekday",a;if(o.indexOf("/")>-1){a.checkedType="dayAverage";const[r,i]=o.split("/");return a.dayAverage={from:Number(r).valueOf(),step:Number(i).valueOf()},a}if(o.indexOf("-")>-1){const[r,i]=o.split("-");return r==="L"?(a.checkedType="beforeEndSpacialDay",a.beforeEndSpacialDay=Number(i).valueOf()+1):(a.checkedType="dayRange",a.dayRange={from:Number(r).valueOf(),to:Number(i).valueOf()}),a}if(o.indexOf("W")>-1){a.checkedType="nearestWeekdaySpecialDay";const[r]=o.split("W");return a.nearestWeekdaySpecialDay=Number(r).valueOf(),a}return a.checkedType="daySpecify",a.daySpecify=o.split(",").map(r=>Number(r).valueOf()),a}if(o==="?"){if(t==="*")return a.checkedType="everyDay",a;if(t.indexOf("/")>-1){a.checkedType="weekdayAverage";const[r,i]=t.split("/");return a.weekdayAverage={from:Number(r).valueOf(),step:Number(i).valueOf()},a}if(t.indexOf("L")>-1){a.checkedType="lastSpecialWeekday";const[r]=t.split("L");return a.lastSpecialWeekday=Number(r).valueOf(),a}if(t.indexOf("#")>-1){a.checkedType="specialAWeekday";const[r,i]=t.split("#");return a.specialAWeekday={idx:Number(r).valueOf(),weekday:Number(i).valueOf()},a}if(t.indexOf("-")>-1){a.checkedType="weekdayRange";const[r,i]=t.split("-");return a.weekdayRange={from:Number(r).valueOf(),to:Number(i).valueOf()},a}return a.checkedType="weekdaySpecify",a.weekdaySpecify=t.split(",").map(r=>Number(r).valueOf()),a}return a},ko=o=>{const{checkedType:t,specify:n,average:a,range:r}=o;return t==="specify"?[...n].sort((s,l)=>s-l).join(","):t==="range"?`${r.from}-${r.to}`:t==="average"?`${a.from}/${a.step}`:t==="none"?"":"*"},a7=o=>{const{checkedType:t,daySpecify:n,weekdaySpecify:a,dayRange:r,weekdayRange:i,dayAverage:s,weekdayAverage:l,lastSpecialWeekday:c,beforeEndSpacialDay:u,nearestWeekdaySpecialDay:d,specialAWeekday:p}=o;let m,f;switch(t){case"everyDay":m="*",f="?";break;case"dayRange":m=`${r.from}-${r.to}`,f="?";break;case"weekdayRange":m="?",f=`${i.from}-${i.to}`;break;case"dayAverage":m=`${s.from}/${s.step}`,f="?";break;case"weekdayAverage":m="?",f=`${l.from}/${l.step}`;break;case"daySpecify":m=[...n].sort((g,C)=>g-C).join(","),f="?";break;case"weekdaySpecify":const y=[...a].sort((g,C)=>g-C);m="?",f=y.join(",");break;case"beforeEndSpacialDay":f="?",u>1?m=`L-${u-1}`:m="L";break;case"lastWeekday":m="LW",f="?";break;case"lastSpecialWeekday":m="?",f=`${c}L`;break;case"nearestWeekdaySpecialDay":m=`${d}W`,f="?";break;case"specialAWeekday":m="?",f=`${p.idx}#${p.weekday}`;break}return[m,f]};function r7(o,t,n){const a=e.ref(JSON.parse(JSON.stringify(Wn))),r=e.ref(JSON.parse(JSON.stringify(Wn))),i=e.ref(JSON.parse(JSON.stringify(Wn))),s=e.ref(JSON.parse(JSON.stringify(Wn))),l=e.ref(JSON.parse(JSON.stringify(n7))),c=e.ref(JSON.parse(JSON.stringify(Cs))),u=e.computed(()=>ko(a.value)),d=e.computed(()=>ko(r.value)),p=e.computed(()=>ko(i.value)),m=e.computed(()=>ko(s.value)),f=e.computed(()=>ko(l.value)),h=e.computed(()=>a7(c.value)),y=e.ref(""),g=x=>{const D=x.split(" ");if(D.length<6)return;y.value=x;const[_,T,E,w,b,S,k]=D;a.value=To(_,a.value),r.value=To(T,r.value),i.value=To(E,i.value),s.value=To(b,s.value),l.value=To(k,l.value),c.value=o7(w,S,c.value)},C=()=>{let x=e.isRef(o)?o.value:o;x||(x=t),g(x),n&&n()};return e.onMounted(()=>{C(),e.watch(()=>[u.value,d.value,p.value,m.value,f.value,h.value],()=>{let x=`${u.value} ${d.value} ${p.value} ${h.value[0]} ${m.value} ${h.value[1]}`;f.value&&(x+=` ${f.value}`),y.value=x,n&&n()},{deep:!0})}),{cronExpression:y,secondData:a,minuteData:r,hourData:i,dayWeekdayData:c,monthData:s,yearData:l,secondValue:u,minuteValue:d,hourValue:p,monthValue:m,yearValue:f,dayWeekdayValue:h,initCronExpression:g}}const i7={class:"cron-tab-card"},s7={class:"cron-preview-card"},l7={key:0,class:"cron-card_header"},c7={class:"cron-card_expression"},u7={class:"cron-card_exp-header"},d7={class:"cron-card_exp-content"},p7={class:"specify-options"},m7={class:"specify-options"},f7={class:"specify-options"},h7={class:"specify-options"},v7={class:"specify-options"},g7={class:"specify-options"},b7={class:"specify-options"},y7=e.defineComponent({name:"CronCard",__name:"CronCard",props:{value:{type:String,default:""},showHeader:{type:Boolean,default:!1}},emits:["update:value","change"],setup(o,{expose:t,emit:n}){const{t:a}=Le.useI18n(),r=o,i=n,{cronExpression:s,secondData:l,minuteData:c,hourData:u,dayWeekdayData:d,monthData:p,yearData:m,secondValue:f,minuteValue:h,hourValue:y,dayWeekdayValue:g,monthValue:C,yearValue:x,initCronExpression:D}=r7(r.value,"0 0/30 * * * ?",()=>{i("update:value",s.value),i("change",s.value)});e.watch(()=>r.value,A=>{A!==s.value&&D(A)});const _=e.ref("second"),T=new Array(60).fill(0).map((A,O)=>({label:`${O}`.padStart(2,"0"),value:O})),E=new Array(24).fill(0).map((A,O)=>({label:`${O}`.padStart(2,"0"),value:O})),w=new Array(12).fill(0).map((A,O)=>({label:`${O+1}`.padStart(2,"0"),value:O+1})),b=new Array(31).fill(0).map((A,O)=>({label:`${O+1}`.padStart(2,"0"),value:O+1})),S=t7.map(A=>({label:a(A.label),value:A.value})),k=new Date().getFullYear(),N=new Array(100).fill(0).map((A,O)=>({label:O+k,value:O+k}));return t({initCronExpression:D}),(A,O)=>{const $=e.resolveComponent("a-input"),V=e.resolveComponent("a-radio"),I=e.resolveComponent("a-input-number"),B=e.resolveComponent("a-space"),Z=e.resolveComponent("a-checkbox-group"),L=e.resolveComponent("a-radio-group"),F=e.resolveComponent("a-tab-pane"),G=e.resolveComponent("a-option"),ae=e.resolveComponent("a-select"),le=e.resolveComponent("a-tabs");return e.openBlock(),e.createElementBlock("div",i7,[e.createElementVNode("div",s7,[o.showHeader?(e.openBlock(),e.createElementBlock("div",l7,e.toDisplayString(A.$t("CRON Expression")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",c7,e.toDisplayString(e.unref(s)),1),e.createElementVNode("div",u7,[e.createElementVNode("span",{onClick:O[0]||(O[0]=U=>_.value="second")},e.toDisplayString(A.$t("Second")),1),e.createElementVNode("span",{onClick:O[1]||(O[1]=U=>_.value="minute")},e.toDisplayString(A.$t("Minute")),1),e.createElementVNode("span",{onClick:O[2]||(O[2]=U=>_.value="hour")},e.toDisplayString(A.$t("Hour")),1),e.createElementVNode("span",{onClick:O[3]||(O[3]=U=>_.value="day")},e.toDisplayString(A.$t("Day")),1),e.createElementVNode("span",{onClick:O[4]||(O[4]=U=>_.value="month")},e.toDisplayString(A.$t("Month")),1),e.createElementVNode("span",{onClick:O[5]||(O[5]=U=>_.value="day")},e.toDisplayString(A.$t("Week")),1),e.createElementVNode("span",{onClick:O[6]||(O[6]=U=>_.value="year")},e.toDisplayString(A.$t("Year")),1)]),e.createElementVNode("div",d7,[e.createVNode($,{class:"is-readonly","model-value":e.unref(f),readonly:"",onFocus:O[7]||(O[7]=U=>_.value="second")},null,8,["model-value"]),e.createVNode($,{class:"is-readonly","model-value":e.unref(h),readonly:"",onFocus:O[8]||(O[8]=U=>_.value="minute")},null,8,["model-value"]),e.createVNode($,{class:"is-readonly","model-value":e.unref(y),readonly:"",onFocus:O[9]||(O[9]=U=>_.value="hour")},null,8,["model-value"]),e.createVNode($,{class:"is-readonly","model-value":e.unref(g)[0],readonly:"",onFocus:O[10]||(O[10]=U=>_.value="day")},null,8,["model-value"]),e.createVNode($,{class:"is-readonly","model-value":e.unref(C),readonly:"",onFocus:O[11]||(O[11]=U=>_.value="month")},null,8,["model-value"]),e.createVNode($,{class:"is-readonly","model-value":e.unref(g)[1],readonly:"",onFocus:O[12]||(O[12]=U=>_.value="day")},null,8,["model-value"]),e.createVNode($,{class:"is-readonly","model-value":e.unref(x),readonly:"",onFocus:O[13]||(O[13]=U=>_.value="year")},null,8,["model-value"])])]),e.createVNode(le,{"active-key":e.unref(_),"onUpdate:activeKey":O[60]||(O[60]=U=>e.isRef(_)?_.value=U:null),size:"large"},{default:e.withCtx(()=>[e.createVNode(F,{key:"second",title:A.$t("Second")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(l).checkedType,"onUpdate:modelValue":O[19]||(O[19]=U=>e.unref(l).checkedType=U),direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(V,{value:"every"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Every seconds")),1)]),_:1}),e.createVNode(V,{value:"range"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From"))+" ",1),e.createVNode(I,{modelValue:e.unref(l).range.from,"onUpdate:modelValue":O[14]||(O[14]=U=>e.unref(l).range.from=U),min:0,max:e.unref(l).range.to,precision:0,step:1},null,8,["modelValue","max"]),e.createTextVNode(" "+e.toDisplayString(A.$t("To"))+" ",1),e.createVNode(I,{modelValue:e.unref(l).range.to,"onUpdate:modelValue":O[15]||(O[15]=U=>e.unref(l).range.to=U),min:e.unref(l).range.from,max:59,precision:0,step:1},null,8,["modelValue","min"]),e.createTextVNode(" "+e.toDisplayString(A.$t("every second in between")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"average"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From the"))+" ",1),e.createVNode(I,{modelValue:e.unref(l).average.from,"onUpdate:modelValue":O[16]||(O[16]=U=>e.unref(l).average.from=U),min:0,max:59,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Every"))+" ",1),e.createVNode(I,{modelValue:e.unref(l).average.step,"onUpdate:modelValue":O[17]||(O[17]=U=>e.unref(l).average.step=U),min:1,max:59,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Second")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"specify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Specific"))+"：",1)]),_:1}),e.createElementVNode("div",p7,[e.createVNode(Z,{modelValue:e.unref(l).specify,"onUpdate:modelValue":O[18]||(O[18]=U=>e.unref(l).specify=U),options:e.unref(T)},null,8,["modelValue","options"])])]),_:1},8,["modelValue"])]),_:1},8,["title"]),e.createVNode(F,{key:"minute",title:A.$t("Minute")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(c).checkedType,"onUpdate:modelValue":O[25]||(O[25]=U=>e.unref(c).checkedType=U),direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(V,{value:"every"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Every minutes")),1)]),_:1}),e.createVNode(V,{value:"range"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From"))+" ",1),e.createVNode(I,{modelValue:e.unref(c).range.from,"onUpdate:modelValue":O[20]||(O[20]=U=>e.unref(c).range.from=U),min:0,max:e.unref(c).range.to,precision:0,step:1},null,8,["modelValue","max"]),e.createTextVNode(" "+e.toDisplayString(A.$t("To"))+" ",1),e.createVNode(I,{modelValue:e.unref(c).range.to,"onUpdate:modelValue":O[21]||(O[21]=U=>e.unref(c).range.to=U),min:e.unref(c).range.from,max:59,precision:0,step:1},null,8,["modelValue","min"]),e.createTextVNode(" "+e.toDisplayString(A.$t("every minute in between")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"average"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From the"))+" ",1),e.createVNode(I,{modelValue:e.unref(c).average.from,"onUpdate:modelValue":O[22]||(O[22]=U=>e.unref(c).average.from=U),min:0,max:59-e.unref(c).average.step,precision:0,step:1},null,8,["modelValue","max"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Every"))+" ",1),e.createVNode(I,{modelValue:e.unref(c).average.step,"onUpdate:modelValue":O[23]||(O[23]=U=>e.unref(c).average.step=U),min:1,max:59-e.unref(c).average.from,precision:0,step:1},null,8,["modelValue","max"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Minute")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"specify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Specific"))+"：",1)]),_:1}),e.createElementVNode("div",m7,[e.createVNode(Z,{modelValue:e.unref(c).specify,"onUpdate:modelValue":O[24]||(O[24]=U=>e.unref(c).specify=U),options:e.unref(T)},null,8,["modelValue","options"])])]),_:1},8,["modelValue"])]),_:1},8,["title"]),e.createVNode(F,{key:"hour",title:A.$t("Hour")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(u).checkedType,"onUpdate:modelValue":O[31]||(O[31]=U=>e.unref(u).checkedType=U),direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(V,{value:"every"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Every hours")),1)]),_:1}),e.createVNode(V,{value:"range"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From"))+" ",1),e.createVNode(I,{modelValue:e.unref(u).range.from,"onUpdate:modelValue":O[26]||(O[26]=U=>e.unref(u).range.from=U),min:0,max:e.unref(u).range.to,precision:0,step:1},null,8,["modelValue","max"]),e.createTextVNode(" "+e.toDisplayString(A.$t("To"))+" ",1),e.createVNode(I,{modelValue:e.unref(u).range.to,"onUpdate:modelValue":O[27]||(O[27]=U=>e.unref(u).range.to=U),min:e.unref(u).range.from,max:59,precision:0,step:1},null,8,["modelValue","min"]),e.createTextVNode(" "+e.toDisplayString(A.$t("every hour in between")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"average"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(" 从第 "),e.createVNode(I,{modelValue:e.unref(u).average.from,"onUpdate:modelValue":O[28]||(O[28]=U=>e.unref(u).average.from=U),min:1,max:24-e.unref(u).average.step,precision:0,step:1},null,8,["modelValue","max"]),e.createTextVNode(" 小时开始每隔 "),e.createVNode(I,{modelValue:e.unref(u).average.step,"onUpdate:modelValue":O[29]||(O[29]=U=>e.unref(u).average.step=U),min:1,max:24-e.unref(u).average.from,precision:0,step:1},null,8,["modelValue","max"]),e.createTextVNode(" 小时 ")]),_:1})]),_:1}),e.createVNode(V,{value:"specify"},{default:e.withCtx(()=>[e.createTextVNode(" 指定：")]),_:1}),e.createElementVNode("div",f7,[e.createVNode(Z,{modelValue:e.unref(u).specify,"onUpdate:modelValue":O[30]||(O[30]=U=>e.unref(u).specify=U),options:e.unref(E)},null,8,["modelValue","options"])])]),_:1},8,["modelValue"])]),_:1},8,["title"]),e.createVNode(F,{key:"day",title:A.$t("Day&Week")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(d).checkedType,"onUpdate:modelValue":O[47]||(O[47]=U=>e.unref(d).checkedType=U),direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(V,{value:"everyDay"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Every days")),1)]),_:1}),e.createVNode(V,{value:"dayRange"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From the {value} day of the month"))+" ",1),e.createVNode(I,{modelValue:e.unref(d).dayRange.from,"onUpdate:modelValue":O[32]||(O[32]=U=>e.unref(d).dayRange.from=U),min:1,max:e.unref(d).dayRange.to,precision:0,step:1},null,8,["modelValue","max"]),e.createTextVNode(" "+e.toDisplayString(A.$t("To"))+" ",1),e.createVNode(I,{modelValue:e.unref(d).weekdayRange.to,"onUpdate:modelValue":O[33]||(O[33]=U=>e.unref(d).weekdayRange.to=U),min:e.unref(d).weekdayRange.from,max:31,precision:0,step:1},null,8,["modelValue","min"]),e.createTextVNode(" "+e.toDisplayString(A.$t("every day in between")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"weekdayRange"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From the {value} day of the week"))+" ",1),e.createVNode(ae,{modelValue:e.unref(d).weekdayRange.from,"onUpdate:modelValue":O[34]||(O[34]=U=>e.unref(d).weekdayRange.from=U)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),U=>(e.openBlock(),e.createBlock(G,{key:U.value,disabled:U.value>e.unref(d).weekdayRange.to,label:U.label,value:U.value},null,8,["disabled","label","value"]))),128))]),_:1},8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("To"))+" ",1),e.createVNode(ae,{modelValue:e.unref(d).weekdayRange.to,"onUpdate:modelValue":O[35]||(O[35]=U=>e.unref(d).weekdayRange.to=U)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),U=>(e.openBlock(),e.createBlock(G,{key:U.value,disabled:U.value<e.unref(d).weekdayRange.from,label:U.label,value:U.value},null,8,["disabled","label","value"]))),128))]),_:1},8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("every day in between")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"dayAverage"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From the {value} day of the month"))+" ",1),e.createVNode(I,{modelValue:e.unref(d).dayAverage.from,"onUpdate:modelValue":O[36]||(O[36]=U=>e.unref(d).dayAverage.from=U),min:1,max:31,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Every {value}"))+" ",1),e.createVNode(I,{modelValue:e.unref(d).dayAverage.step,"onUpdate:modelValue":O[37]||(O[37]=U=>e.unref(d).dayAverage.step=U),min:1,max:31,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Day")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"weekdayAverage"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From the {value} day of the week"))+" ",1),e.createVNode(ae,{modelValue:e.unref(d).weekdayAverage.from,"onUpdate:modelValue":O[38]||(O[38]=U=>e.unref(d).weekdayAverage.from=U)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),U=>(e.openBlock(),e.createBlock(G,{key:U.value,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Every {value}"))+" ",1),e.createVNode(I,{modelValue:e.unref(d).weekdayAverage.step,"onUpdate:modelValue":O[39]||(O[39]=U=>e.unref(d).weekdayAverage.step=U),min:0,max:7,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Day")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"daySpecify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Specific days"))+"：",1)]),_:1}),e.createElementVNode("div",h7,[e.createVNode(Z,{modelValue:e.unref(d).daySpecify,"onUpdate:modelValue":O[40]||(O[40]=U=>e.unref(d).daySpecify=U),options:e.unref(b)},null,8,["modelValue","options"])]),e.createVNode(V,{value:"weekdaySpecify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Specific weekdays"))+"：",1)]),_:1}),e.createElementVNode("div",v7,[e.createVNode(Z,{modelValue:e.unref(d).weekdaySpecify,"onUpdate:modelValue":O[41]||(O[41]=U=>e.unref(d).weekdaySpecify=U),options:e.unref(S)},null,8,["modelValue","options"])]),e.createVNode(V,{value:"lastWeekday"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Last business day of the month")),1)]),_:1}),e.createVNode(V,{value:"beforeEndSpacialDay"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("The {value} day of the penultimate day of the month"))+" ",1),e.createVNode(I,{modelValue:e.unref(d).beforeEndSpacialDay,"onUpdate:modelValue":O[42]||(O[42]=U=>e.unref(d).beforeEndSpacialDay=U),min:1,max:31,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Day")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"lastSpecialWeekday"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("The last one of the month"))+" ",1),e.createVNode(ae,{modelValue:e.unref(d).lastSpecialWeekday,"onUpdate:modelValue":O[43]||(O[43]=U=>e.unref(d).lastSpecialWeekday=U)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),U=>(e.openBlock(),e.createBlock(G,{key:U.value,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(V,{value:"nearestWeekdaySpecialDay"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("The closest working day to {value} each month #prefix"))+" ",1),e.createVNode(I,{modelValue:e.unref(d).nearestWeekdaySpecialDay,"onUpdate:modelValue":O[44]||(O[44]=U=>e.unref(d).nearestWeekdaySpecialDay=U),min:1,max:31,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("The closest working day to {value} each month #append")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"specialAWeekday"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From the {value} of the month"))+" ",1),e.createVNode(I,{modelValue:e.unref(d).specialAWeekday.idx,"onUpdate:modelValue":O[45]||(O[45]=U=>e.unref(d).specialAWeekday.idx=U),min:1,max:5,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("the weekday"))+" ",1),e.createVNode(ae,{modelValue:e.unref(d).specialAWeekday.weekday,"onUpdate:modelValue":O[46]||(O[46]=U=>e.unref(d).specialAWeekday.weekday=U)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(S),U=>(e.openBlock(),e.createBlock(G,{key:U.value,label:U.label,value:U.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["title"]),e.createVNode(F,{key:"month",title:A.$t("Month")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(p).checkedType,"onUpdate:modelValue":O[53]||(O[53]=U=>e.unref(p).checkedType=U),direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(V,{value:"every"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Every months")),1)]),_:1}),e.createVNode(V,{value:"range"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From"))+" ",1),e.createVNode(I,{modelValue:e.unref(p).range.from,"onUpdate:modelValue":O[48]||(O[48]=U=>e.unref(p).range.from=U),min:0,max:e.unref(p).range.to,precision:0,step:1},null,8,["modelValue","max"]),e.createTextVNode(" "+e.toDisplayString(A.$t("To"))+" ",1),e.createVNode(I,{modelValue:e.unref(p).range.to,"onUpdate:modelValue":O[49]||(O[49]=U=>e.unref(p).range.to=U),min:e.unref(p).range.from,max:12,precision:0,step:1},null,8,["modelValue","min"]),e.createTextVNode(" "+e.toDisplayString(A.$t("every month in between")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"average"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From the"))+" ",1),e.createVNode(I,{modelValue:e.unref(p).average.from,"onUpdate:modelValue":O[50]||(O[50]=U=>e.unref(p).average.from=U),min:0,max:12,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Month"))+e.toDisplayString(A.$t("Every {value}"))+" ",1),e.createVNode(I,{modelValue:e.unref(p).average.step,"onUpdate:modelValue":O[51]||(O[51]=U=>e.unref(p).average.step=U),min:1,max:12,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Month")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"specify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Specific"))+"：",1)]),_:1}),e.createElementVNode("div",g7,[e.createVNode(Z,{modelValue:e.unref(p).specify,"onUpdate:modelValue":O[52]||(O[52]=U=>e.unref(p).specify=U),options:e.unref(w)},null,8,["modelValue","options"])])]),_:1},8,["modelValue"])]),_:1},8,["title"]),e.createVNode(F,{key:"year",title:A.$t("Year")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(m).checkedType,"onUpdate:modelValue":O[59]||(O[59]=U=>e.unref(m).checkedType=U),direction:"vertical"},{default:e.withCtx(()=>[e.createVNode(V,{value:"none"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Not specified")),1)]),_:1}),e.createVNode(V,{value:"every"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Every years")),1)]),_:1}),e.createVNode(V,{value:"range"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From"))+" ",1),e.createVNode(I,{modelValue:e.unref(m).range.from,"onUpdate:modelValue":O[54]||(O[54]=U=>e.unref(m).range.from=U),min:e.unref(k),max:e.unref(m).range.to,precision:0,step:1},null,8,["modelValue","min","max"]),e.createTextVNode(" "+e.toDisplayString(A.$t("To"))+" ",1),e.createVNode(I,{modelValue:e.unref(m).range.to,"onUpdate:modelValue":O[55]||(O[55]=U=>e.unref(m).range.to=U),min:e.unref(m).range.from,precision:0,step:1},null,8,["modelValue","min"]),e.createTextVNode(" "+e.toDisplayString(A.$t("every year in between")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"average"},{default:e.withCtx(()=>[e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("From the"))+" ",1),e.createVNode(I,{modelValue:e.unref(m).average.from,"onUpdate:modelValue":O[56]||(O[56]=U=>e.unref(m).average.from=U),min:e.unref(k),precision:0,step:1},null,8,["modelValue","min"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Year"))+e.toDisplayString(A.$t("Every {value}"))+" ",1),e.createVNode(I,{modelValue:e.unref(m).average.step,"onUpdate:modelValue":O[57]||(O[57]=U=>e.unref(m).average.step=U),min:1,max:100,precision:0,step:1},null,8,["modelValue"]),e.createTextVNode(" "+e.toDisplayString(A.$t("Year")),1)]),_:1})]),_:1}),e.createVNode(V,{value:"specify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.$t("Specific"))+"：",1)]),_:1}),e.createElementVNode("div",b7,[e.createVNode(Z,{modelValue:e.unref(m).specify,"onUpdate:modelValue":O[58]||(O[58]=U=>e.unref(m).specify=U),options:e.unref(N)},null,8,["modelValue","options"])])]),_:1},8,["modelValue"])]),_:1},8,["title"])]),_:1},8,["active-key"])])}}}),$l=e.defineComponent({name:"ExpirationTimeCard",__name:"ExpirationTimeCard",props:{value:{type:String,default:""},labelWidth:{type:Number,default:80}},emits:["update:value","change"],setup(o,{expose:t,emit:n}){const a=o,r=n,i=/\d+Y|\d{1,2}[MDHS]|T/g,s=[{key:"TS",label:"Second",max:60,options:[5,10,30,50]},{key:"TM",label:"Minute",max:60,options:[5,10,30,50]},{key:"TH",label:"Hour",max:24,options:[4,8,12,24]},{key:"D",label:"Day",max:31,options:[1,2,3,4]},{key:"M",label:"Month",max:12,options:[1,2,3,4]},{key:"Y",label:"Year",max:4e3,options:[1,2,3,4]}],l=s.reduce((g,C)=>(g[C.key]=C.options)&&g,{}),c={TS:{custom:!1},TM:{custom:!1},TH:{custom:!1},D:{custom:!1},M:{custom:!1},Y:{custom:!1}},u=e.ref(JSON.parse(JSON.stringify(c))),d=e.ref(a.value),p=()=>{u.value=JSON.parse(JSON.stringify(c))},m=g=>{if(p(),!g||!g.length)return;const C=g.match(i);if(!(C!=null&&C.length))return;let x=!1;for(const D of C){if(D==="T"){x=!0;continue}const _=D[D.length-1],T=Number(D.slice(0,-1)).valueOf(),E=x?`T${_}`:_;l[E].includes(T)?(u.value[E].custom=!1,u.value[E].value=T,u.value[E].num=0):(u.value[E].custom=!0,u.value[E].value="custom",u.value[E].num=T)}},f=g=>{const{Y:C,M:x,D,TH:_,TM:T,TS:E}=g,w=[C,x,D,_,T,E];let b="",S=_.value||_.num||T.value||T.num||E.value||E.num,k=!1;for(let N=0;N<6;N++){const A=w[N],O=N>2?s[5-N].key.slice(1):s[5-N].key;if(N>2&&S&&!k){A.custom?(b+=`T${A.num}${O}`,k=!0):A.value&&(b+=`T${A.value}${O}`,k=!0);continue}A.custom?A.num&&(b+=`${A.num}${O}`):A.value&&(b+=`${A.value}${O}`)}return b.length?`P${b}`:""},h=(g,C)=>{C==="custom"?(u.value[g].num=0,u.value[g].custom=!0):u.value[g].custom=!1},y=()=>{};return e.onMounted(()=>{e.watch(()=>u.value,()=>{d.value=f(u.value),r("update:value",d.value),r("change",d.value)},{deep:!0}),m(a.value)}),t({validate:y,initTimesCheck:m}),(g,C)=>{const x=e.resolveComponent("a-input"),D=e.resolveComponent("icon-close-circle-fill"),_=e.resolveComponent("a-button"),T=e.resolveComponent("a-input-group"),E=qe,w=e.resolveComponent("a-radio"),b=e.resolveComponent("a-radio-group"),S=e.resolveComponent("a-input-number");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(E,{"label-width":o.labelWidth,label:g.$t("CurrentSelect")},{default:e.withCtx(()=>[e.createVNode(T,null,{default:e.withCtx(()=>[e.createVNode(x,{class:"is-readonly","model-value":e.unref(d),placeholder:g.$t("Please select a time configuration"),readonly:""},null,8,["model-value","placeholder"]),e.createVNode(_,{onClick:p},{default:e.withCtx(()=>[e.createVNode(D)]),_:1})]),_:1})]),_:1},8,["label-width","label"]),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,k=>e.createVNode(E,{key:k.key,"label-width":o.labelWidth,label:g.$t(k.label)},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:e.unref(u)[k.key].value,"onUpdate:modelValue":N=>e.unref(u)[k.key].value=N,type:"button",size:"mini",onChange:N=>h(k.key,N)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.options,N=>(e.openBlock(),e.createBlock(w,{key:N,value:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N),1)]),_:2},1032,["value"]))),128)),e.createVNode(w,{key:"custom",value:"custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.$t("Custom")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),e.unref(u)[k.key].custom?(e.openBlock(),e.createBlock(S,{key:0,modelValue:e.unref(u)[k.key].num,"onUpdate:modelValue":N=>e.unref(u)[k.key].num=N,step:1,precision:0,min:1,max:k.max,mode:"button",style:{display:"inline-flex",width:"120px","margin-left":"8px"}},null,8,["modelValue","onUpdate:modelValue","max"])):e.createCommentVNode("",!0)]),_:2},1032,["label-width","label"])),64))],64)}}}),mo=e.defineComponent({name:"ValidateRadioGroup",__name:"ValidateRadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},validator:{type:Function,default:void 0}},emits:["update:modelValue","input","change"],setup(o,{emit:t}){const n=o,a=t,r=e.computed({get:()=>n.modelValue,set:s=>{a("update:modelValue",s),a("input",s),a("change",s)}}),i=e.computed(()=>n.validator&&typeof n.validator=="function"?n.validator():typeof n.modelValue=="string"?!!n.modelValue.length:!S0(r.value));return(s,l)=>{const c=e.resolveComponent("icon-check-circle-fill"),u=e.resolveComponent("icon-exclamation-circle-fill"),d=e.resolveComponent("a-radio"),p=e.resolveComponent("a-radio-group");return e.openBlock(),e.createBlock(p,{modelValue:e.unref(r),"onUpdate:modelValue":l[0]||(l[0]=m=>e.isRef(r)?r.value=m:null),type:"button",size:"mini",class:e.normalizeClass(e.unref(i)?"feedback-success":"feedback-error")},{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default"),e.createVNode(d,{value:"__validate_flag",disabled:""},{default:e.withCtx(()=>[e.unref(i)?(e.openBlock(),e.createBlock(c,{key:0,size:"16"})):(e.openBlock(),e.createBlock(u,{key:1,size:"16"}))]),_:1})]),_:3},8,["modelValue","class"])}}}),E7=[{value:"timeDate",name:"Date"},{value:"timeDuration",name:"Duration"},{value:"timeCycle",name:"Cycle"}];function w7(o,t,n,a){const r=Pe(o,"bpmn:FormalExpression",{body:void 0},n),i={timeDuration:void 0,timeDate:void 0,timeCycle:void 0};a!==""&&(i[a]=r),it(o.get("modeling"),t,n,i)}function C7(o,t,n,a){it(o.get("modeling"),t,n,{body:a})}const _7={class:"standard-exptime-card"},N7={class:"exptime-preview-card"},S7={key:0,class:"exptime-card_header"},T7={class:"exptime-card_expression"},k7=e.defineComponent({name:"StandardExpTimeCard",__name:"StandardExpTimeCard",props:{value:{type:String,default:""},showHeader:{type:Boolean,default:!1},labelWidth:{type:Number,default:80}},emits:["update:value","change"],setup(o,{expose:t,emit:n}){const a=o,r=n,i=e.computed(()=>{const[f="R1",h="",y=""]=a.value.split("/");return{cycle:f,time:h,expTime:y}}),s=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,l=e.computed({get:()=>{var f;return Number((f=i.value.cycle)==null?void 0:f.replace("R","")).valueOf()||1},set:f=>d(f,c.value,u.value)}),c=e.computed({get:()=>{const f=i.value.time;return s.test(f)?f:""},set:f=>d(l.value,f,u.value)}),u=e.computed({get:()=>i.value.expTime,set:f=>d(l.value,c.value,f)}),d=(f,h,y)=>{const g=`R${f||"-"}/${h||"-"}/${y||"-"}`;r("update:value",g),r("change",g)},p=e.ref();return t({validate:()=>{const f=p.value.validate();if(f)return f;if(!u.value)return"CycleConfigCanNotBeEmpty";if(!l.value)return"CycleCanNotBeEmpty";if(!c.value)return"DateAndTimeCanNotBeEmpty";if(!s.test(c.value))return"TheFormatOfTheTimeIsAbnormal"}}),(f,h)=>{const y=e.resolveComponent("a-input-number"),g=qe,C=e.resolveComponent("a-date-picker");return e.openBlock(),e.createElementBlock("div",_7,[e.createElementVNode("div",N7,[o.showHeader?(e.openBlock(),e.createElementBlock("div",S7,e.toDisplayString(f.$t("CRON Expression")),1)):e.createCommentVNode("",!0),e.createElementVNode("div",T7,e.toDisplayString(o.value||"-/-/-"),1)]),e.createVNode(g,{label:f.$t("Number of cycles"),"label-width":o.labelWidth},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(l),"onUpdate:modelValue":h[0]||(h[0]=x=>e.isRef(l)?l.value=x:null),min:1,step:1,precision:0},null,8,["modelValue"])]),_:1},8,["label","label-width"]),e.createVNode(g,{label:f.$t("Date and Time"),"label-width":o.labelWidth},{default:e.withCtx(()=>[e.createVNode(C,{key:"timeDate",modelValue:e.unref(c),"onUpdate:modelValue":h[1]||(h[1]=x=>e.isRef(c)?c.value=x:null),"value-format":"YYYY-MM-DDTHH:mm:ss","show-time":""},null,8,["modelValue"])]),_:1},8,["label","label-width"]),e.createVNode($l,{ref_key:"expTimeCardRef",ref:p,value:e.unref(u),"onUpdate:value":h[2]||(h[2]=x=>e.isRef(u)?u.value=x:null),"label-width":o.labelWidth},null,8,["value","label-width"])])}}}),x7=kn(k7,[["__scopeId","data-v-595bf910"]]),V7=e.defineComponent({name:"TimerForm",__name:"TimerForm",props:{labelWidth:{type:Number,default:80},eventTimerGetter:{type:Function,default:null}},setup(o){const{t}=Le.useI18n(),n=e.inject(De),a=e.inject(we),r=o,i=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/;let s,l,c;const u=e.ref(""),d=e.ref(""),p=e.ref(""),m=e.ref(E7),f=N=>{u.value=void 0,w7(a.value,s,l,N)},h=()=>{C7(a.value,s,c,d.value)},y=()=>{d.value=p.value,h()},g=Ae({delay:0,trailing:!0},()=>{h()}),C=e.ref(!1),x=e.ref(""),D=e.ref(""),_=e.ref(""),T=e.ref("cron"),E=e.ref(!1),w=e.ref(),b=()=>{var N;if(E.value&&T.value==="standard"){const A=(N=w.value)==null?void 0:N.validate();return A?(Xt.Message.error(t(A)),!1):(d.value=x.value=_.value,h(),!0)}else return E.value&&(x.value=D.value),d.value=x.value,h(),!0},S=()=>{_.value=D.value="",x.value=d.value,u.value==="timeDuration"?E.value=!1:(E.value=!0,!d.value||d.value.split(" ").length>5?(D.value=x.value,T.value="cron"):d.value.startsWith("R")&&d.value.split("/").length===3&&(_.value=x.value,T.value="standard")),C.value=!0};return Ie(()=>{s=n.value,l=wl(r.eventTimerGetter&&r.eventTimerGetter(s)||s),u.value=Um(l)||"",l&&u.value?(c=l.get(u.value),d.value=dp(c),i.test(d.value)&&(p.value=d.value)):(c=void 0,p.value=d.value="")}),(N,A)=>{const O=e.resolveComponent("a-radio"),$=mo,V=qe,I=st,B=e.resolveComponent("icon-calendar"),Z=e.resolveComponent("a-button"),L=e.resolveComponent("a-date-picker"),F=e.resolveComponent("a-input-group"),G=be,ae=$l,le=e.resolveComponent("a-radio-group"),U=y7,te=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(V,{"label-width":o.labelWidth,label:N.$t("TimerEventDefType")},{default:e.withCtx(()=>[e.createVNode($,{modelValue:u.value,"onUpdate:modelValue":A[0]||(A[0]=Q=>u.value=Q),onChange:f},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,Q=>(e.openBlock(),e.createBlock(O,{key:Q.value,value:Q.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t(Q.name)),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label-width","label"]),u.value?(e.openBlock(),e.createBlock(V,{key:0,"label-width":o.labelWidth,label:N.$t("TimerEventDefValue")},e.createSlots({default:e.withCtx(()=>[u.value==="timeDate"?(e.openBlock(),e.createBlock(F,{key:"timeDate"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:d.value,"onUpdate:modelValue":A[1]||(A[1]=Q=>d.value=Q),placeholder:N.$t("Please enter a time"),onInput:e.unref(g)},null,8,["modelValue","placeholder","onInput"]),u.value==="timeDate"?(e.openBlock(),e.createBlock(L,{key:0,modelValue:p.value,"onUpdate:modelValue":A[2]||(A[2]=Q=>p.value=Q),position:"lt","value-format":"YYYY-MM-DDTHH:mm:ss","show-time":"",onChange:y},{default:e.withCtx(()=>[e.createVNode(Z,null,{default:e.withCtx(()=>[e.createVNode(B)]),_:1})]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createBlock(F,{key:"timeCycle"},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:d.value,"onUpdate:modelValue":A[3]||(A[3]=Q=>d.value=Q),placeholder:N.$t("Please enter a condition"),onChange:h},null,8,["modelValue","placeholder"]),e.createVNode(Z,{type:"primary",onClick:S},{default:e.withCtx(()=>[e.createVNode(G,{name:"Search"})]),_:1})]),_:1}))]),_:2},[u.value==="timeDuration"||u.value==="timeCycle"?{name:"tooltip",fn:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString(N.$t("Specify how long to wait before the timer. S for seconds, M for minutes, and D for days; P represents the time period and T represents the time period accurate to the time")),1),e.createElementVNode("div",null,e.toDisplayString(N.$t("Note: The time format is still ISO 8601 format, which can be written as P1Y2M3DT4H5M6S in a year, two months, three days, four hours, five minutes and six seconds")),1),e.createElementVNode("div",null,e.toDisplayString(N.$t("P is the start marker, T is the time and date split mark, there is no date only time T can not be omitted, for example, once every 1 hour should be written as PT1H")),1)],512),[[e.vShow,u.value==="timeDuration"]]),e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("div",null,e.toDisplayString(N.$t("Specifies the interval at which the recurrence is executed, which can be used to launch process instances at regular intervals")),1),e.createElementVNode("div",null,e.toDisplayString(N.$t("There are currently two ways to set up timeCycle: ISO 8601 and Cron expressions")),1),e.createElementVNode("div",null,e.toDisplayString(N.$t("R represents the number of times it needs to be performed, and R2PT1M represents two executions, 1 minute apart. where endDate is an optional configuration, the timer will stop working at the specified time")),1)],512),[[e.vShow,u.value==="timeCycle"]])]),key:"0"}:void 0]),1032,["label-width","label"])):e.createCommentVNode("",!0),e.createVNode(te,{visible:C.value,"onUpdate:visible":A[9]||(A[9]=Q=>C.value=Q),width:E.value?800:540,title:N.$t("Time configuration"),"on-before-ok":b},{default:e.withCtx(()=>[!E.value&&C.value?(e.openBlock(),e.createBlock(ae,{key:0,value:x.value,"onUpdate:value":A[4]||(A[4]=Q=>x.value=Q)},null,8,["value"])):e.createCommentVNode("",!0),E.value&&C.value?(e.openBlock(),e.createBlock(V,{key:1,label:N.$t("Time format")},{default:e.withCtx(()=>[e.createVNode(le,{modelValue:T.value,"onUpdate:modelValue":A[5]||(A[5]=Q=>T.value=Q),type:"button",size:"mini",onChange:A[6]||(A[6]=Q=>x.value="")},{default:e.withCtx(()=>[e.createVNode(O,{value:"cron"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("Cron")),1)]),_:1}),e.createVNode(O,{value:"standard"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("Standard format")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):e.createCommentVNode("",!0),C.value&&E.value&&T.value==="cron"?(e.openBlock(),e.createBlock(U,{key:2,value:D.value,"onUpdate:value":A[7]||(A[7]=Q=>D.value=Q)},null,8,["value"])):e.createCommentVNode("",!0),C.value&&E.value&&T.value==="standard"?(e.openBlock(),e.createBlock(x7,{key:3,ref_key:"standardExpTimeRef",ref:w,value:_.value,"onUpdate:value":A[8]||(A[8]=Q=>_.value=Q)},null,8,["value"])):e.createCommentVNode("",!0)]),_:1},8,["visible","width","title"])],64)}}}),A7=e.defineComponent({name:"ShapeTime",__name:"ShapeTime",setup(o){return(t,n)=>{const a=be,r=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(r,{key:"ShapeTime"},{header:e.withCtx(()=>[e.createVNode(a,{name:"Clock"}),e.createTextVNode(e.toDisplayString(t.$t("ShapeTime")),1)]),default:e.withCtx(()=>[e.createVNode(V7)]),_:1})}}}),D7=e.defineComponent({name:"ShapeError",__name:"ShapeError",setup(o){const t=e.inject(De),n=e.inject(we),a=e.ref([]),r=e.ref();let i=[],s;const l=()=>{const d=Hm(t.value);r.value=d?d.get("id"):""},c=()=>{var d;s=on((d=t==null?void 0:t.value)==null?void 0:d.businessObject),i=Jo(s.get("rootElements"),"bpmn:Error"),a.value=i.map(p=>({name:p.name,value:p.id}))},u=d=>{const p=[],m=fr(t.value);let f;if(d==="new"){const h=wn("Error");f=Pe(n.value,"bpmn:Error",{id:h,name:h},s),d=f.get("id"),p.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:s,properties:{rootElements:[...s.get("rootElements"),f]}}})}f=f||gr(m,"bpmn:Error",d),p.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:m,properties:{errorRef:f}}}),Te(n.value,p),r.value=d};return Ie(()=>{if(!(t!=null&&t.value)){r.value="",a.value=[];return}l(),c()}),(d,p)=>{const m=be,f=e.resolveComponent("a-option"),h=po,y=qe,g=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(g,{key:"ShapeError"},{header:e.withCtx(()=>[e.createVNode(m,{name:"Zap",style:{transform:"rotateY(180deg) rotate(90deg)"}}),e.createTextVNode(e.toDisplayString(d.$t("ShapeError")),1)]),default:e.withCtx(()=>[e.createVNode(y,{label:d.$t("SelectError"),tooltip:d.$t("If there are no options, configure the error event in the process global event")},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(r),"onUpdate:modelValue":p[0]||(p[0]=C=>e.isRef(r)?r.value=C:null),placeholder:d.$t("Please select Error"),onChange:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),C=>(e.openBlock(),e.createBlock(f,{key:C.value,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","tooltip"])]),_:1})}}}),sc="text/plain";function rd(o){return o.find(function(t){return(t.textFormat||sc)===sc})}function Mi(o){const t=rd(o&&o.get("documentation"));return t&&t.text}function lc(o,t,n,a){let r=rd(n&&n.get("documentation"));if(r)return a?Fe(o.get("modeling"),t,r,"text",a):Fe(o.get("modeling"),t,n,"documentation",ls(n.get("documentation"),r));const i=o.get("bpmnFactory");a&&(r=i.create("bpmn:Documentation",{text:a}),Fe(o.get("modeling"),t,n,"documentation",[...n.get("documentation"),r]))}const R7=e.defineComponent({__name:"ShapeDocumentation",setup(o){const t=e.inject(De),n=e.inject(we),a=e.ref(""),r=Ae({delay:0,trailing:!0},()=>{lc(n.value,t.value,t.value.businessObject,a.value)}),i=e.ref(!1),s=e.ref(""),l=Ae({delay:0,trailing:!0},()=>{const u=t.value.businessObject.get("processRef");lc(n.value,t.value,u,s.value)});function c(u){if(ps(t.value)){const d=t.value.businessObject.get("processRef");if((Mi(d)||"")!=="")return!0}return!1}return Ie(()=>{if(a.value=Mi(z.getBusinessObject(t.value))||"",ps(t.value)){i.value=!0;const u=t.value.businessObject.get("processRef");s.value=Mi(u)||""}else i.value=!1,s.value=""}),(u,d)=>{const p=be,m=e.resolveComponent("a-tag"),f=e.resolveComponent("a-textarea"),h=qe,y=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(y,{name:"Documentation"},{header:e.withCtx(()=>[e.createVNode(p,{name:"FileCog"}),e.createTextVNode(e.toDisplayString(u.$t("Documentation"))+" ",1),c(e.unref(t))?(e.openBlock(),e.createBlock(m,{key:0,color:"blue"},{default:e.withCtx(()=>[e.createVNode(p,{name:"Pointer"})]),_:1})):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(h,{label:u.$t("ElementDocumentation")},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=g=>a.value=g),"auto-size":{minRows:2,maxRows:6},onInput:e.unref(r)},null,8,["modelValue","onInput"])]),_:1},8,["label"]),i.value?(e.openBlock(),e.createBlock(h,{key:0,label:u.$t("ProcessDocumentation")},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=g=>s.value=g),"auto-size":{minRows:2,maxRows:6},onInput:e.unref(l)},null,8,["modelValue","onInput"])]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1})}}});function Ll(o){return Lt(o,"flowable:Properties")}function I7(o){return o.get("values")}function O7(o,t,n,a){const r=[];let i=n.get("extensionElements");i||(i=Pe(o,"bpmn:ExtensionElements",{values:[]},n),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:n,properties:{extensionElements:i}}}));let s=Ll(n)[0];s||(s=Pe(o,"flowable:Properties",{values:[]},i),r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:i,properties:{values:[...i.get("values"),s]}}}));const l=Pe(o,"flowable:Property",a,s);return r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:[...s.get("values"),l]}}}),Te(o,r),l}function $7(o,t,n,a){const r=[],i=n.get("extensionElements"),s=Ll(n)[0],l=ls(s.get("values"),a);r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:s,properties:{values:l}}}),l.length||r.push({cmd:"element.updateModdleProperties",context:{element:t,moddleElement:i,properties:{values:ls(i.get("values"),s)}}}),Te(o,r)}const L7=e.defineComponent({__name:"ShapeExtensionProperties",setup(o){const{t}=Le.useI18n(),n=e.inject(De),a=e.inject(we);e.inject(Ko);let r,i,s,l,c,u=-1;const d=e.ref([]),p=e.ref({id:""}),m=e.ref(!1),f=e.computed(()=>[{title:t("PropName"),ellipsis:!0,tooltip:!0,dataIndex:"name"},{title:t("PropValue"),ellipsis:!0,tooltip:!0,dataIndex:"value"},{title:t("Operation"),width:160,slotName:"operation"}]),h=Ye(t("PropId"),od),y=Ye(t("PropNameCanNotBeEmpty")),g=Ye(t("PropValueCanNotBeEmpty")),C=e.shallowRef(null),x=(T,E)=>{T?(u=E,c=l[u],p.value={id:c==null?void 0:c.get("id"),name:c==null?void 0:c.get("name"),value:c==null?void 0:c.get("value")}):(u=-1,p.value={id:wn("Property")}),m.value=!0},D=()=>{var T;(T=C.value)==null||T.validate().then(E=>{var k;if(E)return E;const{id:w,name:b,value:S}=p.value;if(u===-1){const N=Po((k=n.value)==null?void 0:k.businessObject,w);if(N)return Xt.Message.error(N);O7(a.value,r,i,{id:w,name:b,value:S})}else Ih(a.value.get("modeling"),n.value,l[u],{name:b,value:S});m.value=!1})},_=T=>{$7(a.value,r,i,l[T])};return Ie(()=>{r=n.value,r&&(i=pp(n.value),s=Ll(i)[0],s?(l=I7(s)||[],d.value=(l==null?void 0:l.map(T=>({id:T.get("id"),name:T.get("name"),value:T.get("value")})))||[]):d.value=l=[])}),(T,E)=>{const w=be,b=e.resolveComponent("a-tag"),S=e.resolveComponent("a-button"),k=e.resolveComponent("a-popconfirm"),N=e.resolveComponent("a-table"),A=e.resolveComponent("icon-plus"),O=e.resolveComponent("a-input"),$=e.resolveComponent("a-form-item"),V=e.resolveComponent("a-form"),I=e.resolveComponent("a-drawer"),B=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(B,{key:"ExtensionProperties"},{header:e.withCtx(()=>[e.createVNode(w,{name:"ImagePlus"}),e.createTextVNode(e.toDisplayString(T.$t("ExtensionProperties"))+" ",1),e.createVNode(b,{color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.value.length),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(N,{columns:e.unref(f),data:d.value,scroll:{y:240},pagination:!1},{operation:e.withCtx(({record:Z,rowIndex:L})=>[e.createVNode(S,{type:"text",onClick:F=>x(Z,L)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(k,{position:"left",content:T.$t("AreYouSureYouWantToDelete?"),"ok-text":T.$t("Confirm"),"cancel-text":T.$t("Cancel"),onOk:F=>_(L)},{default:e.withCtx(()=>[e.createVNode(S,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode(S,{type:"primary",class:"inline-large-button",long:"",onClick:E[0]||(E[0]=Z=>x())},{default:e.withCtx(()=>[e.createVNode(A),e.createTextVNode(" "+e.toDisplayString(T.$t("AddProperty")),1)]),_:1}),e.createVNode(I,{visible:m.value,"onUpdate:visible":E[5]||(E[5]=Z=>m.value=Z),width:480,title:T.$t("PropertyModal")},{footer:e.withCtx(()=>[e.createVNode(S,{onClick:E[4]||(E[4]=Z=>m.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.$t("Cancel")),1)]),_:1}),e.createVNode(S,{type:"primary",onClick:D},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.$t("Confirm")),1)]),_:1})]),default:e.withCtx(()=>[m.value?(e.openBlock(),e.createBlock(V,{key:0,ref_key:"propFormRef",ref:C,model:p.value,autocomplete:"off","auto-label-width":"",onFinish:D},{default:e.withCtx(()=>[e.createVNode($,e.mergeProps({field:"id",label:T.$t("Id")},e.unref(h)),{default:e.withCtx(()=>[e.createVNode(O,{"model-value":p.value.id,"onUpdate:modelValue":E[1]||(E[1]=Z=>p.value.id=Z),disabled:""},null,8,["model-value"])]),_:1},16,["label"]),e.createVNode($,e.mergeProps({field:"name",label:T.$t("PropName")},e.unref(y)),{default:e.withCtx(()=>[e.createVNode(O,{"model-value":p.value.name,"onUpdate:modelValue":E[2]||(E[2]=Z=>p.value.name=Z),placeholder:T.$t("Please enter a name for the attribute")},null,8,["model-value","placeholder"])]),_:1},16,["label"]),e.createVNode($,e.mergeProps({field:"value",label:T.$t("PropValue")},e.unref(g)),{default:e.withCtx(()=>[e.createVNode(O,{"model-value":p.value.value,"onUpdate:modelValue":E[3]||(E[3]=Z=>p.value.value=Z),placeholder:T.$t("Please enter a value for the attribute")},null,8,["model-value","placeholder"])]),_:1},16,["label"])]),_:1},8,["model"])):e.createCommentVNode("",!0)]),_:1},8,["visible","title"])]),_:1})}}}),id=e.defineComponent({name:"FieldForm",__name:"FieldForm",props:{visible:{type:Boolean,default:!1},form:{type:Object,default:()=>null},title:{type:String,default:""},confirm:{type:Function,default:()=>Promise.resolve(!0)}},emits:["update:visible","update:form"],setup(o,{emit:t}){const{t:n}=Le.useI18n(),a=o,r=t,i=e.computed({get:()=>a.visible,set:h=>r("update:visible",h)}),s=e.shallowRef(null),l={fieldType:"string"},c=e.ref({...l}),u=Ye(n("FieldNameCanNotBeEmpty")),d=Ye(n("FieldTypeCanNotBeEmpty")),p=Ye(n("FieldValueCanNotBeEmpty")),m=()=>{var h;c.value=a.form?JSON.parse(JSON.stringify(a.form)):{...l},(h=s.value)==null||h.resetFields()},f=async()=>{var y;return await((y=s.value)==null?void 0:y.validate())?!1:await a.confirm(c.value)};return e.watch(()=>a.visible,m,{immediate:!0}),(h,y)=>{const g=st,C=e.resolveComponent("a-form-item"),x=e.resolveComponent("a-radio"),D=e.resolveComponent("a-radio-group"),_=e.resolveComponent("a-form"),T=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(T,{visible:e.unref(i),"onUpdate:visible":y[3]||(y[3]=E=>e.isRef(i)?i.value=E:null),width:"480px",title:o.title,"on-before-ok":f},{default:e.withCtx(()=>[e.createVNode(_,{ref_key:"fieldFormRef",ref:s,model:e.unref(c),"auto-label-width":"",autocomplete:"off",onFinish:f},{default:e.withCtx(()=>[e.createVNode(C,e.mergeProps({field:"fieldName",label:h.$t("FieldName")},e.unref(u)),{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(c).fieldName,"onUpdate:modelValue":y[0]||(y[0]=E=>e.unref(c).fieldName=E),placeholder:h.$t("Please enter a field name")},null,8,["modelValue","placeholder"])]),_:1},16,["label"]),e.createVNode(C,e.mergeProps({field:"fieldType",label:h.$t("FieldType")},e.unref(d)),{default:e.withCtx(()=>[e.createVNode(D,{modelValue:e.unref(c).fieldType,"onUpdate:modelValue":y[1]||(y[1]=E=>e.unref(c).fieldType=E),size:"mini",type:"button"},{default:e.withCtx(()=>[e.createVNode(x,{value:"string"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.$t("string")),1)]),_:1}),e.createVNode(x,{value:"expression"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.$t("expression")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},16,["label"]),e.createVNode(C,e.mergeProps({field:"fieldValue",label:h.$t("FieldValue")},e.unref(p)),{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(c).fieldValue,"onUpdate:modelValue":y[2]||(y[2]=E=>e.unref(c).fieldValue=E),placeholder:h.$t("Please enter a field value")},null,8,["modelValue","placeholder"])]),_:1},16,["label"])]),_:1},8,["model"])]),_:1},8,["visible","title"])}}}),B7={class:"tag-input-flex",style:{gap:"10px"}},P7={class:"header-tags"},M7={class:"arco-input-wrapper"},F7=["placeholder","aria-placeholder"],j7={class:"field-pop-table"},q7={class:"field-pop-table_th"},U7={class:"field-pop-table_th"},H7={class:"field-pop-table_th"},Z7={class:"field-pop-table_td"},z7={class:"field-pop-table_td"},G7={class:"field-pop-table_td"},K7={class:"field-pop-table_empty"},W7=e.defineComponent({name:"ListenerTagInput",__name:"ListenerTagInput",props:{value:{type:String,default:""},listenerType:{type:String,default:"executionListener"},rowKey:{type:String,default:"value"}},emits:["update:value","change"],setup(o,{emit:t}){const{t:n}=Le.useI18n(),a=o,r=t,i=e.ref(!1),s=e.ref(!1),l=e.ref([]),c=e.ref([]),u=e.ref(""),d=e.computed(()=>[{title:n("Name"),dataIndex:"name"},{title:n("Value"),dataIndex:"value"},{title:n("Type"),width:120,slotName:"type"},{title:n("Operation"),width:128,slotName:"operation"}]),p={type:"radio",showCheckedAll:!1,onlyCurrent:!1},m=e.ref(),f=e.ref([]),h=e.ref([]);e.watch(()=>a.value,()=>{f.value=a.value?[a.value]:[]},{immediate:!0,deep:!0});const y=async()=>{try{u.value="",i.value=!0,s.value=!0,await g(),h.value=c.value.filter(E=>f.value.includes(E[a.rowKey]))}catch{l.value=[]}finally{i.value=!1}},g=async()=>{try{i.value=!0;const{data:E=[]}=await k8({listenerType:a.listenerType,name:u.value,type:"class"});l.value=E,u.value||(c.value=[...E])}catch{l.value=[]}finally{i.value=!1}},C=(E,w)=>E[a.rowKey]===w,x=E=>{var S;const w=E[a.rowKey],b=h.value.findIndex(k=>C(k,w))>-1;(S=m.value)==null||S.select(E[a.rowKey],!b),D([w])},D=E=>{const w=E[0];h.value=l.value.filter(b=>b[a.rowKey]===w)},_=(E,w)=>{f.value=f.value.filter(b=>b!==E[a.rowKey]),h.value.splice(w,1)},T=()=>{const E=f.value[0];r("update:value",E),r("change",E,h.value[0])};return(E,w)=>{const b=st,S=be,k=e.resolveComponent("a-button"),N=e.resolveComponent("a-input-group"),A=e.resolveComponent("a-tag"),O=e.resolveComponent("a-empty"),$=e.resolveComponent("a-popover"),V=e.resolveComponent("a-table"),I=e.resolveComponent("a-spin"),B=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(N,null,{default:e.withCtx(()=>[e.createVNode(b,{"model-value":o.value,placeholder:E.$t("Please enter a listener class"),onInput:w[0]||(w[0]=Z=>r("update:value",Z))},null,8,["model-value","placeholder"]),e.createVNode(k,{type:"primary",onClick:y},{default:e.withCtx(()=>[e.createVNode(S,{name:"Search"})]),_:1})]),_:1}),e.createVNode(B,{visible:e.unref(s),"onUpdate:visible":w[3]||(w[3]=Z=>e.isRef(s)?s.value=Z:null),width:"840px",title:E.$t("Please select a listener"),onOk:T},{default:e.withCtx(()=>[e.createVNode(I,{loading:e.unref(i),style:{width:"100%",height:"calc(100vh - 142px)",overflow:"hidden","box-sizing":"border-box"}},{default:e.withCtx(()=>[e.createElementVNode("div",B7,[e.createElementVNode("div",P7,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),(Z,L)=>(e.openBlock(),e.createBlock(A,{key:Z[o.rowKey],color:"arcoblue",closable:"",onClose:F=>_(Z,L)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Z.name),1)]),_:2},1032,["onClose"]))),128))]),e.createVNode(N,null,{default:e.withCtx(()=>[e.createElementVNode("span",M7,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":w[1]||(w[1]=Z=>e.isRef(u)?u.value=Z:null),class:"arco-input arco-input-size-small",placeholder:E.$t("Please enter a name"),"aria-placeholder":E.$t("Please enter a name")},null,8,F7),[[e.vModelText,e.unref(u)]])]),e.createVNode(k,{type:"primary",onClick:g},{default:e.withCtx(()=>[e.createVNode(S,{name:"Search"})]),_:1})]),_:1}),e.createVNode(V,{ref_key:"listenerTableRef",ref:m,"selected-keys":e.unref(f),"onUpdate:selectedKeys":w[2]||(w[2]=Z=>e.isRef(f)?f.value=Z:null),columns:e.unref(d),data:e.unref(l),scroll:{y:"100%"},"row-selection":p,pagination:!1,"row-key":o.rowKey,onRowClick:x,onSelect:D},{type:e.withCtx(({record:Z})=>[e.createTextVNode(e.toDisplayString(E.$t(Z.type)),1)]),operation:e.withCtx(({record:Z})=>[e.createVNode($,{title:E.$t("Parameters list"),position:"left"},{content:e.withCtx(()=>{var L,F;return[e.createElementVNode("div",j7,[e.createElementVNode("div",q7,e.toDisplayString(E.$t("Name")),1),e.createElementVNode("div",U7,e.toDisplayString(E.$t("Type")),1),e.createElementVNode("div",H7,e.toDisplayString(E.$t("Value")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Z.flowListenerParamList,G=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:G.id},[e.createElementVNode("div",Z7,e.toDisplayString(G.name),1),e.createElementVNode("div",z7,e.toDisplayString(E.$t(G.type)),1),e.createElementVNode("div",G7,e.toDisplayString(G.value||""),1)],64))),128)),e.withDirectives(e.createElementVNode("div",K7,[e.withDirectives(e.createVNode(O,null,null,512),[[e.vShow,!((L=Z.flowListenerParamList)!=null&&L.length)]])],512),[[e.vShow,!((F=Z.flowListenerParamList)!=null&&F.length)]])])]}),default:e.withCtx(()=>[e.createVNode(k,{type:"text"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.$t("View the parameters")),1)]),_:1})]),_:2},1032,["title"])]),_:1},8,["selected-keys","columns","data","row-key"])])]),_:1},8,["loading"])]),_:1},8,["visible","title"])],64)}}}),Y7={class:"panel-table-header"},J7={class:"table-header_text"},sd=e.defineComponent({name:"ListenerForm",__name:"ListenerForm",props:{visible:{type:Boolean,default:!1},form:{type:Object,default:()=>null},title:{type:String,default:""},listenerType:{type:String,default:"executionListener"},eventTypeOptions:{type:Array,default:()=>[]},listenerTypeOptions:{type:Array,default:()=>[]},confirm:{type:Function,default:()=>Promise.resolve(!0)}},emits:["update:visible","update:form"],setup(o,{emit:t}){const{t:n}=Le.useI18n(),a=o,r=t,i=e.computed({get:()=>a.visible,set:_=>r("update:visible",_)}),s=e.shallowRef(null),l={event:"start",listenerType:"class",fields:[]},c=e.ref(JSON.parse(JSON.stringify(l)));Ye(n("EventTypeCanNotBeEmpty")),Ye(n("ListenerTypeCanNotBeEmpty"));const u=Ye(n("ListenerContentCanNotBeEmpty")),d=()=>{var _;l.event=a.listenerType==="taskListener"?"create":"start",c.value=a.form?JSON.parse(JSON.stringify(a.form)):JSON.parse(JSON.stringify(l)),(_=s.value)==null||_.resetFields()},p=(_,T)=>{var k;const{name:E,type:w,value:b,flowListenerParamList:S}=T;c.value.listenerType=w,c.value.listenerContent=b,c.value.fields=(S||[]).map(N=>({fieldName:N.name,fieldType:N.type,fieldValue:N.value})),(k=s.value)==null||k.validate()},m=async()=>{var T;return await((T=s.value)==null?void 0:T.validate())?!1:await a.confirm(c.value)},f=e.computed(()=>[{title:n("FieldName"),ellipsis:!0,tooltip:!0,dataIndex:"fieldName"},{title:n("FieldType"),ellipsis:!0,tooltip:!0,dataIndex:"fieldType",render:({record:_})=>_.fieldType?n(_.fieldType):"-"},{title:n("FieldValue"),ellipsis:!0,tooltip:!0,dataIndex:"fieldValue"},{title:n("Operation"),width:160,slotName:"operation"}]),h=e.ref(!1),y=e.ref();let g=e.ref(-1);const C=_=>{c.value.fields.splice(_,1)},x=(_,T)=>{y.value=_,T!==void 0?g.value=T:g.value=-1,h.value=!0},D=async _=>(g.value>-1?c.value.fields.splice(g.value,1,{..._}):c.value.fields.push({..._}),!0);return e.watch(()=>a.visible,()=>d(),{immediate:!0}),(_,T)=>{const E=e.resolveComponent("a-radio"),w=e.resolveComponent("a-radio-group"),b=e.resolveComponent("a-form-item"),S=W7,k=e.resolveComponent("a-form"),N=e.resolveComponent("a-divider"),A=be,O=e.resolveComponent("icon-plus"),$=e.resolveComponent("a-button"),V=e.resolveComponent("a-popconfirm"),I=e.resolveComponent("a-table"),B=id,Z=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(Z,{visible:e.unref(i),"onUpdate:visible":T[6]||(T[6]=L=>e.isRef(i)?i.value=L:null),width:"540px",title:o.title,"on-before-ok":m},{default:e.withCtx(()=>[e.createVNode(k,{ref_key:"listenerFormRef",ref:s,model:e.unref(c),"auto-label-width":"",autocomplete:"off",onFinish:m},{default:e.withCtx(()=>[e.createVNode(b,{field:"event",label:_.$t("EventType")},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(c).event,"onUpdate:modelValue":T[0]||(T[0]=L=>e.unref(c).event=L),type:"button",size:"mini"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.eventTypeOptions,L=>(e.openBlock(),e.createBlock(E,{key:L.value,value:L.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t(L.name.toLowerCase())),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(b,{field:"listenerType",label:_.$t("ListenerType")},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(c).listenerType,"onUpdate:modelValue":T[1]||(T[1]=L=>e.unref(c).listenerType=L),type:"button",size:"mini"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.listenerTypeOptions,L=>(e.openBlock(),e.createBlock(E,{key:L.value,value:L.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t(L.name.toLowerCase())),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(b,e.mergeProps({field:"listenerContent",label:_.$t("ListenerContent")},e.unref(u)),{default:e.withCtx(()=>[e.createVNode(S,{value:e.unref(c).listenerContent,"onUpdate:value":T[2]||(T[2]=L=>e.unref(c).listenerContent=L),"listener-type":o.listenerType,onChange:p},null,8,["value","listener-type"])]),_:1},16,["label"])]),_:1},8,["model"]),e.createVNode(N,{type:"dashed",margin:"12px"}),e.createElementVNode("div",Y7,[e.createVNode(A,{name:"RectangleEllipsis"}),e.createElementVNode("span",J7,e.toDisplayString(_.$t("InjectField")),1),e.createVNode($,{type:"primary",onClick:T[3]||(T[3]=L=>x())},{default:e.withCtx(()=>[e.createVNode(O),e.createTextVNode(" "+e.toDisplayString(_.$t("CreateNewField")),1)]),_:1})]),e.createVNode(I,{columns:e.unref(f),data:e.unref(c).fields,scroll:{y:"100%"},pagination:!1},{operation:e.withCtx(({record:L,rowIndex:F})=>[e.createVNode($,{type:"text",onClick:G=>x(L,F)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(V,{position:"left",content:_.$t("AreYouSureYouWantToDelete?"),"ok-text":_.$t("Confirm"),"cancel-text":_.$t("Cancel"),onOk:G=>C(F)},{default:e.withCtx(()=>[e.createVNode($,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode(B,{visible:e.unref(h),"onUpdate:visible":T[4]||(T[4]=L=>e.isRef(h)?h.value=L:null),form:e.unref(y),"onUpdate:form":T[5]||(T[5]=L=>e.isRef(y)?y.value=L:null),title:_.$t("InjectField"),confirm:D},null,8,["visible","form","title"])]),_:1},8,["visible","title"])}}}),X7={script:void 0,resource:void 0,scriptFormat:void 0},Q7={class:void 0},ev={expression:void 0},tv={delegateExpression:void 0},Aa={...X7,...Q7,...ev,...tv},nv={events:void 0,class:void 0,expression:void 0,delegateExpression:void 0,throwEvent:void 0,entityType:void 0,signalName:void 0,errorCode:void 0,messageName:void 0},ov=[{label:"ENGINE_CREATED",value:"ENGINE_CREATED",tooltip:"The process engine to which the listener belongs has been created and can respond to API calls"},{label:"ENGINE_CLOSED",value:"ENGINE_CLOSED",tooltip:"The process engine to which the listener belongs has been shut down and you can no longer make API calls to the listener"},{label:"ENTITY_CREATED",value:"ENTITY_CREATED",tooltip:"A new entity has been created. This entity is included in this event"},{label:"ENTITY_INITIALIZED",value:"ENTITY_INITIALIZED",tooltip:"The new entity has been created and fully initialized. If any child entity is created as part of that entity, this event fires after the child entity creation is initialized, as opposed to the ENTITY_CREATE event"},{label:"ENTITY_UPDATED",value:"ENTITY_UPDATED",tooltip:"The entity has been updated. This entity is included in this event"},{label:"ENTITY_DELETED",value:"ENTITY_DELETED",tooltip:"The entity has been deleted. This entity is included in this event"},{label:"ENTITY_SUSPENDED",value:"ENTITY_SUSPENDED",tooltip:"The entity has been suspended. This entity is included in this event. ProcessDefinitions, ProcessInstances, and Tasks will distribute this event"},{label:"ENTITY_ACTIVATED",value:"ENTITY_ACTIVATED",tooltip:"The entity has been activated. This entity is included in this event. ProcessDefinitions, ProcessInstances, and Tasks will distribute this event"},{label:"JOB_EXECUTION_SUCCESS",value:"JOB_EXECUTION_SUCCESS",tooltip:"The job has been successfully executed. This job is included in this event"},{label:"JOB_EXECUTION_FAILURE",value:"JOB_EXECUTION_FAILURE",tooltip:"The job execution failed. The job and exception are included in this event"},{label:"JOB_RETRIES_DECREMENTED",value:"JOB_RETRIES_DECREMENTED",tooltip:"The number of job retries has been reduced due to execution failures. This job is included in this event"},{label:"JOB_CANCELED",value:"JOB_CANCELED",tooltip:"The job has been canceled. This job is included in this event. Jobs are canceled due to API calls, associated boundary timers due to task completion, and deployments due to new process definitions"},{label:"TIMER_SCHEDULED",value:"TIMER_SCHEDULED",tooltip:"A scheduled job has been created and is expected to execute at a future point in time"},{label:"TIMER_FIRED",value:"TIMER_FIRED",tooltip:"The timer has been triggered"},{label:"ACTIVITY_STARTED",value:"ACTIVITY_STARTED",tooltip:"Node starts executing"},{label:"ACTIVITY_COMPLETED",value:"ACTIVITY_COMPLETED",tooltip:"The node completed successfully"},{label:"ACTIVITY_CANCELLED",value:"ACTIVITY_CANCELLED",tooltip:"The node is about to be canceled. There are three reasons for the cancellation of a node #reasons"},{label:"ACTIVITY_SIGNALED",value:"ACTIVITY_SIGNALED",tooltip:"The node received a signal"},{label:"ACTIVITY_MESSAGE_RECEIVED",value:"ACTIVITY_MESSAGE_RECEIVED",tooltip:"The node received a message. Events are distributed before the node receives the message. When a node receives a message, it distributes a ACTIVITY_SIGNAL or ACTIVITY_STARTED event for that node, depending on its type (boundary event, or subprocess start event)"},{label:"ACTIVITY_MESSAGE_WAITING",value:"ACTIVITY_MESSAGE_WAITING",tooltip:"A node has created a message event subscription and is waiting to receive messages"},{label:"ACTIVITY_MESSAGE_CANCELLED",value:"ACTIVITY_MESSAGE_CANCELLED",tooltip:"A node has already unsubscribed from a message event, so receiving the message will no longer trigger the node"},{label:"ACTIVITY_ERROR_RECEIVED",value:"ACTIVITY_ERROR_RECEIVED",tooltip:"The node received an error event. Distributed before the node actually handles the error. The activityId of this event is the node that handles the error. If the error is successfully delivered, a ACTIVITY_SIGNALLED or ACTIVITY_COMPLETE message is subsequently sent for the node"},{label:"UNCAUGHT_BPMN_ERROR",value:"UNCAUGHT_BPMN_ERROR",tooltip:"An uncaught BPMN error is thrown. The process does not have a handler for the error. The activityId of the event is empty"},{label:"ACTIVITY_COMPENSATE",value:"ACTIVITY_COMPENSATE",tooltip:"Nodes will be compensated. The event contains the ID of the node on which the compensation will be performed."},{label:"MULTI_INSTANCE_ACTIVITY_STARTED",value:"MULTI_INSTANCE_ACTIVITY_STARTED",tooltip:"The multi-instance node is executed"},{label:"MULTI_INSTANCE_ACTIVITY_COMPLETED",value:"MULTI_INSTANCE_ACTIVITY_COMPLETED",tooltip:"The multi-instance node completes successfully"},{label:"MULTI_INSTANCE_ACTIVITY_CANCELLED",value:"MULTI_INSTANCE_ACTIVITY_CANCELLED",tooltip:"The multi-instance node is about to be canceled. There are three reasons why a multi-instance node can be canceled #reasons"},{label:"VARIABLE_CREATED",value:"VARIABLE_CREATED",tooltip:"Process variables have been created. This event contains the variable name, the value of the variable, and the associated execution and task (if any)"},{label:"VARIABLE_UPDATED",value:"VARIABLE_UPDATED",tooltip:"The variables have been updated. This event contains the variable name, the value of the variable, and the associated execution and task (if any)"},{label:"VARIABLE_DELETED",value:"VARIABLE_DELETED",tooltip:"The variables have been deleted. This event contains the variable name, the value of the variable, and the associated execution and task (if any)"},{label:"TASK_ASSIGNED",value:"TASK_ASSIGNED",tooltip:"The task has been assigned to the user. This quest is included in this event"},{label:"TASK_CREATED",value:"TASK_CREATED",tooltip:"The task has been created. This event is distributed after the ENTITY_CREATE event. If the task is part of a process, this event will be triggered before the task listener executes"},{label:"TASK_COMPLETED",value:"TASK_COMPLETED",tooltip:"The mission has been accomplished. This event is distributed before the ENTITY_DELETE event. If the task is part of a process, this event is triggered before the process advances, and is followed by a ACTIVITY_COMPLETE event that points to the node that represents the task"},{label:"PROCESS_CREATED",value:"PROCESS_CREATED",tooltip:"A process instance has been created. All the basic parameters have been set, but the variables have not been set"},{label:"PROCESS_STARTED",value:"PROCESS_STARTED",tooltip:"The process instance has been started. Distributed when a previously created process is initiated. PROCESS_STARTED events are distributed after the relevant ENTITY_INITIALIZED events and variables are set"},{label:"PROCESS_COMPLETED",value:"PROCESS_COMPLETED",tooltip:"The process instance has been completed. Distributed after the ACTIVITY_COMPLETED event of the last node. The process ends when the process instance does not have any path to continue"},{label:"PROCESS_COMPLETED_WITH_TERMINATE_END_EVENT",value:"PROCESS_COMPLETED_WITH_TERMINATE_END_EVENT",tooltip:"The process has reached the terminate end event and ended."},{label:"PROCESS_CANCELLED",value:"PROCESS_CANCELLED",tooltip:"The process has been canceled. Distribute before the process instance is removed from the runtime. The process instance is canceled by calling the RuntimeService.deleteProcessInstance API"},{label:"MEMBERSHIP_CREATED",value:"MEMBERSHIP_CREATED",tooltip:"The user has joined the group. This event contains the IDs of the associated users and groups"},{label:"MEMBERSHIP_DELETED",value:"MEMBERSHIP_DELETED",tooltip:"The user has been removed from the group. This event contains the IDs of the associated users and groups"},{label:"MEMBERSHIPS_DELETED",value:"MEMBERSHIPS_DELETED",tooltip:"All users of the group will be removed. This event is thrown before the user moves out, so the association is still accessible. For performance reasons, MEMBERSHIP_DELETED events are no longer thrown for each user who is removed"}],av=[{label:"attachment",value:"attachment",tooltip:"attachment"},{label:"comment",value:"comment",tooltip:"comment"},{label:"execution",value:"execution",tooltip:"execution"},{label:"identity-link",value:"identity-link",tooltip:"identity-link"},{label:"job",value:"job",tooltip:"job"},{label:"process-instance",value:"process-instance",tooltip:"process-instance"},{label:"process-definition",value:"process-definition",tooltip:"process-definition"},{label:"task",value:"task",tooltip:"task"}];function ld(o){return o==="TaskListener"?[{value:"create",name:"Create"},{value:"assignment",name:"Assignment"},{value:"complete",name:"Complete"},{value:"delete",name:"Delete"}]:[{value:"start",name:"Start"},{value:"take",name:"Take"},{value:"end",name:"End"}]}function cd(){return[{value:"class",name:"JavaClass"},{value:"expression",name:"Expression"},{value:"delegateExpression",name:"DelegateExpression"}]}function rv(o){return jm(o)}function ud(o,t,n){switch(t){case"class":return{...Aa,class:n};case"expression":return{...Aa,expression:n};case"delegateExpression":return{...Aa,delegateExpression:n};case"script":return{...Aa,script:Ve(o,"Script",{})}}}function dd(o){const t=z.getBusinessObject(o);return t.get("processRef")||t}function pd(o){return o.map(t=>{const{class:n,expression:a,delegateExpression:r,event:i,fields:s}=t,l=n||a||r,c=rv(t);return{event:i,listenerType:c,listenerContent:l,fields:s?md(s):[]}})}function iv(o){return o.map(t=>{var l;const n=(l=t.get("events"))==null?void 0:l.split(","),a=!!t.throwEvent,r=t.entityType,i=lv(t),s=cv(t,i);return{events:n,throwEvent:a,listenerType:i,entityType:r,listenerContent:s}})}function md(o){return o.map(t=>{const{name:n,string:a,expression:r}=t;return{fieldName:n,fieldType:a?"string":"expression",fieldValue:a||r}})}function fd(o,t,n,a){const{event:r,listenerType:i,listenerContent:s,fields:l}=t,c={event:r};i==="class"?c.class=s:i==="expression"?c.expression=s:i==="delegateExpression"&&(c.delegateExpression=s);const u=Ve(o,n,c,a);return l&&l.length&&(u.fields=l.map(d=>Vr(o,d,u))),u}function sv(o,t,n){const a=hd(t);return Ve(o,"EventListener",a,n)}function hd(o){const t={...nv},{events:n,listenerType:a,throwEvent:r,listenerContent:i,entityType:s}=o;return t.events=n==null?void 0:n.join(","),r?(t.throwEvent=a,a==="signal"||a==="globalSignal"?t.signalName=i:a==="message"?t.messageName=i:a==="error"&&(t.errorCode=i)):(t.entityType=s,a==="class"?t.class=i:a==="expression"?t.expression=i:a==="delegateExpression"&&(t.delegateExpression=i)),t}function Vr(o,t,n){const{fieldName:a,fieldType:r,fieldValue:i}=t,s={name:a};return r==="string"?s.string=i:s.expression=i,Ve(o,"Field",s,n)}function lv(o){return o.class?"class":o.expression?"expression":o.delegateExpression?"delegateExpression":o.throwEvent||""}function cv(o,t){return t==="class"||t==="expression"||t==="delegateExpression"?o[t]||"":t==="signal"||t==="globalSignal"?o.signalName||"":t==="message"?o.messageName||"":o.errorCode||""}const uv=e.defineComponent({name:"ExecutionListener",__name:"ExecutionListener",setup(o){const{t}=Le.useI18n(),n=e.inject(De),a=e.inject(we);let r,i,s;const l=e.computed(()=>[{title:t("EventType"),width:100,ellipsis:!0,tooltip:!0,dataIndex:"event",render:({record:_})=>_.event?t(_.event):"-"},{title:t("ListenerType"),ellipsis:!0,tooltip:!0,dataIndex:"listenerType",render:({record:_})=>_.listenerType?t(_.listenerType):"-"},{title:t("ListenerContent"),ellipsis:!0,tooltip:!0,dataIndex:"listenerContent",render:({record:_})=>_.listenerContent?t(_.listenerContent):"-"},{title:t("Operation"),width:160,slotName:"operation"}]),c=e.shallowRef([]),u=e.shallowRef([]),d=e.shallowRef([]);let p,m=e.ref(-1);const f=e.ref(),h=e.ref(!1),y=_=>{const T=s[_];ea(a.value,r,i,T)},g=(_,T)=>{f.value=_,T!==void 0?(m.value=T,p=s[T]):(m.value=-1,p=null),h.value=!0},C=async _=>(m.value>-1?x(_):D(_),!0),x=_=>{it(a.value.get("modeling"),r,p,{...ud(a.value,_.listenerType,_.listenerContent),event:_.event,fields:_.fields.map(T=>Vr(a.value,T,p))})},D=_=>{const T=fd(a.value,_,"ExecutionListener");Dt(a.value,r,i,T)};return Ie(()=>{if(r=n==null?void 0:n.value,!r){c.value=[],s=i=void 0;return}i=dd(r),u.value=ld("ExecutionListener"),d.value=cd(),s=ge(i,"ExecutionListener"),c.value=pd(s)}),(_,T)=>{const E=be,w=e.resolveComponent("a-tag"),b=e.resolveComponent("a-button"),S=e.resolveComponent("a-popconfirm"),k=e.resolveComponent("a-table"),N=e.resolveComponent("icon-plus"),A=sd,O=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(O,{key:"ExecutionListener"},{header:e.withCtx(()=>[e.createVNode(E,{name:"BellRing"}),e.createTextVNode(e.toDisplayString(_.$t("ExecutionListener"))+" ",1),e.createVNode(w,{color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c).length),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(k,{columns:e.unref(l),data:e.unref(c),scroll:{y:240},pagination:!1},{operation:e.withCtx(({record:$,rowIndex:V})=>[e.createVNode(b,{type:"text",onClick:I=>g($,V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(S,{position:"left",content:_.$t("AreYouSureYouWantToDelete?"),"ok-text":_.$t("Confirm"),"cancel-text":_.$t("Cancel"),onOk:I=>y(V)},{default:e.withCtx(()=>[e.createVNode(b,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode(b,{type:"primary",class:"inline-large-button",long:"",onClick:T[0]||(T[0]=$=>g())},{default:e.withCtx(()=>[e.createVNode(N),e.createTextVNode(" "+e.toDisplayString(_.$t("AddListener")),1)]),_:1}),e.createVNode(A,{visible:e.unref(h),"onUpdate:visible":T[1]||(T[1]=$=>e.isRef(h)?h.value=$:null),form:e.unref(f),"onUpdate:form":T[2]||(T[2]=$=>e.isRef(f)?f.value=$:null),title:_.$t("ExecutionListener"),"event-type-options":e.unref(u),"listener-type-options":e.unref(d),confirm:C},null,8,["visible","form","title","event-type-options","listener-type-options"])]),_:1})}}}),dv={key:0,class:"a-validate-textarea__suffix"},qa=e.defineComponent({name:"ValidateTextarea",__name:"ValidateTextarea",props:{modelValue:{type:String,default:void 0},useValidate:{type:Boolean,default:!0},validator:{type:Function,default:void 0}},emits:["update:modelValue","input"],setup(o,{emit:t}){const n=o,a=t,r=e.computed({get:()=>n.modelValue,set:s=>{a("update:modelValue",s),a("input",s)}}),i=e.computed(()=>{var s;return n.validator&&typeof n.validator=="function"?n.validator():!!((s=r.value)!=null&&s.length)});return(s,l)=>{const c=e.resolveComponent("a-textarea"),u=e.resolveComponent("icon-check-circle-fill"),d=e.resolveComponent("icon-exclamation-circle-fill");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["a-validate-textarea",e.unref(i)?"feedback-success":"feedback-error"])},[e.createVNode(c,e.mergeProps({modelValue:e.unref(r),"onUpdate:modelValue":l[0]||(l[0]=p=>e.isRef(r)?r.value=p:null)},s.$attrs),null,16,["modelValue"]),o.useValidate?(e.openBlock(),e.createElementBlock("div",dv,[e.unref(i)?(e.openBlock(),e.createBlock(u,{key:0,size:"16"})):(e.openBlock(),e.createBlock(d,{key:1,size:"16"}))])):e.createCommentVNode("",!0)],2)}}}),Ar=o=>(e.pushScopeId("data-v-207831eb"),o=o(),e.popScopeId(),o),pv={class:"variable-title-input"},mv={class:"exp-textarea-input"},fv=Ar(()=>e.createElementVNode("div",{class:"exp-input_prefix"},[e.createElementVNode("span",null,"${")],-1)),hv=Ar(()=>e.createElementVNode("div",{class:"exp-input_append"},[e.createElementVNode("span",null,"}")],-1)),vv={class:"tag-input-flex"},gv={class:"header-tags"},bv={class:"exp-textarea-input"},yv=Ar(()=>e.createElementVNode("div",{class:"exp-input_prefix"},[e.createElementVNode("span",null,"${")],-1)),Ev=Ar(()=>e.createElementVNode("div",{class:"exp-input_append"},[e.createElementVNode("span",null,"}")],-1)),wv={class:"tag-input-special-grid"},Cv={class:"left-org-tree"},_v={class:"tree-content"},Nv={class:"right-table use-grid"},Sv={class:"operator-list use-grid"},Tv={class:"logic-list use-grid"},kv=e.defineComponent({name:"ConditionExpressionInput",__name:"ConditionExpressionInput",props:{value:{type:String,default:""},modalTitle:{type:String,default:""},processId:{type:String,default:""},useValidate:{type:Boolean,default:!0}},emits:["update:value","change"],setup(o,{emit:t}){const{t:n}=Le.useI18n(),a=o,r=t,i=e.computed({get:()=>{var S;const b=a.value.match(l);return((S=b==null?void 0:b[0])==null?void 0:S.slice(2,-1))||""},set:b=>{const S=b.trim();if(S===""){r("update:value",S),r("change",S);return}const k="${"+S+"}";r("update:value",k),r("change",k)}}),s=e.ref(""),l=/\${(.*?)}/g,c=e.ref(!1),u=e.ref(!1),d=e.ref([]),p=e.ref([]),m=e.ref([]),f=e.ref(),h=e.computed(()=>[{name:n("Form variables"),id:"form",children:d.value},{name:n("Underlying variables"),id:"flow",children:p.value},{name:n("Function variables"),id:"func",children:m.value}]),y=[{label:"1",value:"1",name:"1"},{label:"2",value:"2",name:"2"},{label:"3",value:"3",name:"3"},{label:"+",value:"+",name:"加"},{label:"4",value:"4",name:"4"},{label:"5",value:"5",name:"5"},{label:"6",value:"6",name:"6"},{label:"-",value:"-",name:"减"},{label:"7",value:"7",name:"7"},{label:"8",value:"8",name:"8"},{label:"9",value:"9",name:"9"},{label:"*",value:"*",name:"乘"},{label:"0",value:"0",name:"0"},{label:".",value:".",name:"小数点"},{label:"%",value:"%",name:"余"},{label:"/",value:"/",name:"除"}],g=[{label:"(",value:"(",name:"左括号"},{label:")",value:")",name:"右括号"},{label:n("And"),value:"&&",name:"且"},{label:n("Or"),value:"||",name:"或"},{label:n("Less than"),value:"<",name:"小于"},{label:n("Greater than"),value:">",name:"大于"},{label:n("Equal"),value:"==",name:"等于"},{label:n("Not equal"),value:"!=",name:"不等于"},{label:n("Less than or equal to"),value:"<=",name:"小于等于"},{label:n("Greater than or equal to"),value:">=",name:"大于等于"},{label:";",value:";",name:";"},{label:",",value:",",name:","},{label:n("Not"),value:"!",name:"非"}],C=async()=>{try{const{data:b=[]}=await Dl({formType:0,formCode:a.processId});b.forEach(S=>{S.name=S.labelName,S.id="form."+S.makKey}),d.value=b}catch{d.value=[]}},x=async()=>{try{const{data:b=[]}=await U8();p.value=b}catch{p.value=[]}},D=async()=>{try{const{data:b=[]}=await H8();m.value=b}catch{m.value=[]}},_=(b,{node:S})=>{S.children&&S.children.length||T(S.id)},T=b=>{s.value+=` ${b}`},E=async()=>{var b;try{c.value=!0,s.value=i.value;const S=[];d.value.length||S.push(C),p.value.length||S.push(x),m.value.length||S.push(D),S.length&&(u.value=!0),await Promise.all(S.map(k=>k())),await e.nextTick(),(b=f.value)==null||b.expandAll(!0)}finally{u.value=!1}},w=()=>{i.value=s.value};return(b,S)=>{const k=qa,N=be,A=e.resolveComponent("a-button"),O=e.resolveComponent("a-tree"),$=e.resolveComponent("a-spin"),V=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",pv,[e.createElementVNode("div",mv,[fv,e.createVNode(k,{modelValue:e.unref(i),"onUpdate:modelValue":S[0]||(S[0]=I=>e.isRef(i)?i.value=I:null),"use-validate":o.useValidate,autosize:{minRows:2,maxRows:4}},null,8,["modelValue","use-validate"]),hv]),e.createVNode(A,{type:"outline",style:{height:"auto"},onClick:E},{default:e.withCtx(()=>[e.createVNode(N,{name:"Plus"})]),_:1})]),e.createVNode(V,{visible:e.unref(c),"onUpdate:visible":S[2]||(S[2]=I=>e.isRef(c)?c.value=I:null),width:"1160px",title:o.modalTitle,onOk:w},{default:e.withCtx(()=>[e.createVNode($,{loading:e.unref(u),style:{width:"100%",height:"calc(100vh - 142px)",overflow:"hidden","box-sizing":"border-box"}},{default:e.withCtx(()=>[e.createElementVNode("div",vv,[e.createElementVNode("div",gv,[e.createElementVNode("div",bv,[yv,e.createVNode(k,{modelValue:e.unref(s),"onUpdate:modelValue":S[1]||(S[1]=I=>e.isRef(s)?s.value=I:null),"use-validate":o.useValidate,autosize:{minRows:2,maxRows:4}},null,8,["modelValue","use-validate"]),Ev])]),e.createElementVNode("div",wv,[e.createElementVNode("div",Cv,[e.createElementVNode("div",_v,[e.createVNode(O,{ref_key:"orgTreeRef",ref:f,data:e.unref(h),"field-names":{title:"name",key:"id"},size:"mini","block-node":"","default-expand-all":"",onSelect:_},null,8,["data"])])]),e.createElementVNode("div",Nv,[e.createElementVNode("div",Sv,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(y,I=>e.createVNode(A,{key:I.value,type:"outline",onClick:B=>T(I.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.label),1)]),_:2},1032,["onClick"])),64))]),e.createElementVNode("div",Tv,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(g,I=>e.createVNode(A,{key:I.value,type:"outline",status:"success",onClick:B=>T(I.value)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.label),1)]),_:2},1032,["onClick"])),64))])])])])]),_:1},8,["loading"])]),_:1},8,["visible","title"])],64)}}}),Bl=kn(kv,[["__scopeId","data-v-207831eb"]]),xv=e.defineComponent({name:"SequenceFlow",__name:"SequenceFlow",setup(o){const t=e.inject(De),n=e.inject(we),a=[{value:"",name:"NormalSequenceFlow"},{value:"default",name:"DefaultSequenceFlow"},{value:"condition",name:"ConditionSequenceFlow"}],r=e.ref(""),i=e.ref(""),s=e.ref(""),l=e.ref(!1);let c;const u=()=>{const m=t.value.businessObject,f=[];if(r.value==="default")return f.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:m,properties:{conditionExpression:void 0}}},{cmd:"element.updateProperties",context:{element:t.value.source,properties:{default:m}}}),Te(n.value,f);if(r.value==="")return f.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:m,properties:{conditionExpression:void 0}}}),l.value&&f.push({cmd:"element.updateProperties",context:{element:t.value.source,properties:{default:void 0}}}),Te(n.value,f);l.value&&f.push({cmd:"element.updateProperties",context:{element:t.value.source,properties:{default:void 0}}});const h=Pe(n.value,"bpmn:FormalExpression",{body:""});return f.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:m,properties:{conditionExpression:h}}}),Te(n.value,f)},d=Ae({delay:0,trailing:!0},()=>{c=B1(t.value),Ol(n.value,{element:t.value,moddleElement:c,properties:{body:i.value}})}),p=()=>{var h;l.value=!1,c=B1(t.value),s.value=so(n.value);const m=c==null?void 0:c.get("body");if(m!==void 0){i.value=m,r.value="condition";return}i.value="",t.value.source.businessObject.get("default")===((h=t.value)==null?void 0:h.businessObject)?(r.value="default",l.value=!0):r.value=""};return Ie(()=>{t!=null&&t.value&&p()}),(m,f)=>{const h=be,y=e.resolveComponent("a-radio"),g=e.resolveComponent("a-radio-group"),C=qe,x=Bl,D=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(D,{key:"SequenceFlow"},{header:e.withCtx(()=>[e.createVNode(h,{name:"MoveUpRight"}),e.createTextVNode(e.toDisplayString(m.$t("SequenceFlow")),1)]),default:e.withCtx(()=>[e.createVNode(C,{label:m.$t("SequenceFlowType")},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(r),"onUpdate:modelValue":f[0]||(f[0]=_=>e.isRef(r)?r.value=_:null),size:"mini",type:"button",onChange:u},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,_=>e.createVNode(y,{key:_.value,value:_.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t(_.name)),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.unref(r)==="condition"?(e.openBlock(),e.createBlock(C,{key:0,label:m.$t("ConditionExpression")},{default:e.withCtx(()=>[e.createVNode(x,{value:e.unref(i),"onUpdate:value":f[1]||(f[1]=_=>e.isRef(i)?i.value=_:null),"modal-title":m.$t("EditExpression"),"process-id":e.unref(s),onChange:e.unref(d)},null,8,["value","modal-title","process-id","onChange"])]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1})}}}),Vv={class:"tag-input-flex"},Av={class:"header-tags"},Dv={class:"tag-input-grid",style:{"--columns":"360px 1fr"}},Rv={class:"left-org-tree"},Iv={class:"tree-content"},Ov={class:"right-table"},$v={class:"table-content"},Lv=e.defineComponent({name:"FormTagInput",__name:"FormTagInput",props:{data:{type:Array,default:()=>[]},modalTitle:{type:String,default:"Form selection"},multiple:{type:Boolean,default:!1},rowKey:{type:String,default:"code"}},emits:["update:data","change"],setup(o,{emit:t}){const{t:n}=Le.useI18n(),a=o,r=t,i=e.computed(()=>Array.isArray(e.toRaw(a.data))?a.data.map($=>$.name):[]),s=e.ref(!1),l=e.ref([]),c=e.ref([]);e.watch(()=>a.data,()=>{l.value=(a.data||[]).map($=>$[a.rowKey]),c.value=[...a.data||[]]},{immediate:!0,deep:!0});const u=e.ref(!1),d=e.ref([]),p=e.ref(),m=e.ref([]),f=e.ref(0),h=e.ref(""),y=e.ref({pageSize:15,pageNum:1}),g=e.ref({companyId:"",keyword:""}),C=e.reactive({type:a.multiple?"checkbox":"radio",showCheckedAll:!1,onlyCurrent:!1}),x=e.ref(),D=e.computed(()=>[{title:n("Name"),dataIndex:"name"},{title:n("Code"),dataIndex:"code"}]),_=e.computed(()=>En(d.value,"name",h.value)),T=async()=>{var $;try{d.value=await Rl(),await e.nextTick(),($=p.value)==null||$.expandAll(!0)}catch(V){console.error(V),d.value=[]}},E=async $=>{try{u.value=!0,$&&(y.value.pageNum=$);const{data:{rows:V,total:I}}=await A8({pager:y.value,entity:g.value});m.value=V,f.value=I}catch(V){console.error(V),m.value=[],f.value=0}finally{u.value=!1}},w=($,V)=>$[a.rowKey]===V,b=($,{node:V})=>{g.value.companyId=V.companyId,E(1)},S=$=>{var B;const V=$[a.rowKey],I=c.value.findIndex(Z=>w(Z,V))>-1;(B=x.value)==null||B.select($[a.rowKey],!I),k($,V)},k=($,V)=>{if(a.multiple){const I=c.value.findIndex(B=>w(B,V));I>-1?c.value.splice(I,1):c.value.push(m.value.find(B=>w(B,V)))}else c.value=[m.value.find(I=>w(I,V))]},N=($,V)=>{l.value=l.value.filter(I=>I!==$[a.rowKey]),c.value.splice(V,1)},A=()=>{r("update:data",[...c.value]),r("change",[...c.value])},O=async()=>{try{u.value=!0,s.value=!0,await T(),await E()}finally{u.value=!1}};return($,V)=>{const I=e.resolveComponent("a-input-tag"),B=be,Z=e.resolveComponent("a-button"),L=e.resolveComponent("a-input-group"),F=e.resolveComponent("a-tag"),G=e.resolveComponent("a-input"),ae=e.resolveComponent("a-tree"),le=e.resolveComponent("a-table"),U=e.resolveComponent("a-spin"),te=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(L,null,{default:e.withCtx(()=>[e.createVNode(I,{"model-value":e.unref(i),"max-tag-count":3,placeholder:$.$t("Please select a form"),readonly:"",onFocus:O},null,8,["model-value","placeholder"]),e.createVNode(Z,{type:"primary",onClick:O},{default:e.withCtx(()=>[e.createVNode(B,{name:"Search"})]),_:1})]),_:1}),e.createVNode(te,{visible:e.unref(s),"onUpdate:visible":V[4]||(V[4]=Q=>e.isRef(s)?s.value=Q:null),width:"960px",title:$.$t(o.modalTitle),onOk:A},{default:e.withCtx(()=>[e.createVNode(U,{loading:e.unref(u),style:{width:"100%",height:"calc(100vh - 142px)",overflow:"hidden","box-sizing":"border-box"}},{default:e.withCtx(()=>[e.createElementVNode("div",Vv,[e.createElementVNode("div",Av,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(Q,J)=>(e.openBlock(),e.createBlock(F,{key:Q[o.rowKey],color:"arcoblue",closable:"",onClose:ne=>N(Q,J)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Q.name),1)]),_:2},1032,["onClose"]))),128))]),e.createElementVNode("div",Dv,[e.createElementVNode("div",Rv,[e.createVNode(L,null,{default:e.withCtx(()=>[e.createVNode(G,{modelValue:e.unref(h),"onUpdate:modelValue":V[0]||(V[0]=Q=>e.isRef(h)?h.value=Q:null),placeholder:$.$t("Please enter a name"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(Z,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(B,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",Iv,[e.createVNode(ae,{ref_key:"categoriesTreeRef",ref:p,data:e.unref(_),"field-names":{title:"name",key:"id"},size:"mini","block-node":"","default-expand-all":"",onSelect:b},null,8,["data"])])]),e.createElementVNode("div",Ov,[e.createVNode(L,null,{default:e.withCtx(()=>[e.createVNode(G,{modelValue:e.unref(g).keyword,"onUpdate:modelValue":V[1]||(V[1]=Q=>e.unref(g).keyword=Q),placeholder:$.$t("Please enter a name or key"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(Z,{type:"primary",onClick:V[2]||(V[2]=Q=>E(1))},{default:e.withCtx(()=>[e.createVNode(B,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",$v,[e.createVNode(le,{ref_key:"formTableRef",ref:x,"selected-keys":e.unref(l),"onUpdate:selectedKeys":V[3]||(V[3]=Q=>e.isRef(l)?l.value=Q:null),"row-key":o.rowKey,scroll:{y:"100%"},"row-selection":e.unref(C),columns:e.unref(D),data:e.unref(m),pagination:{current:e.unref(y).pageNum,pageSize:e.unref(y).pageSize,itemCount:e.unref(f),pageSizeOptions:[15,30,50,100],showTotal:!0,showPageSize:!0,onPageSizeChange:Q=>(e.unref(y).pageSize=Q)&&E(1),onChange:E},onRowClick:S,onSelect:k},null,8,["selected-keys","row-key","row-selection","columns","data","pagination"])])])])])]),_:1},8,["loading"])]),_:1},8,["visible","title"])],64)}}}),Bv=e.createElementVNode("div",{style:{height:"12px"}},null,-1),cc=80,Pv=e.defineComponent({name:"NodeFormBinding",__name:"NodeFormBinding",setup(o){const{t}=Le.useI18n(),n=e.inject(De),a=e.inject(we),r=()=>{const w=n.value,b=w==null?void 0:w.businessObject,S=a.value.get("modeling");return{element:w,modeling:S,bo:b}},i=e.ref(),s=e.ref(!1),l=e.ref(),c=e.ref(),u=e.ref(),d=e.computed(()=>[{title:t("FieldName"),ellipsis:!0,tooltip:!0,dataIndex:"labelName"},{title:t("Operation"),width:268,slotName:"operation"}]),p=e.ref([]),m=e.ref([]),f=()=>{var $;s.value=!0;const{element:w,bo:b}=r(),S=(($=i.value)==null?void 0:$.toString())||"0";l.value=void 0;const k=Lt(b),N=k.find(V=>V.$type==="flowable:NodeFormType"),A=k.find(V=>V.$type==="flowable:NodeFormExp"),O=[vn(w,b,{formKey:void 0})];if(N)O.push(vn(w,N,{body:S}));else{const V=Ve(a.value,"NodeFormType",{body:S});O.push(...Mt(a.value,w,b,V))}A&&O.push(vn(w,A,{body:"[]"})),Te(a.value,O)},h=Ae({delay:0,trailing:!0},w=>{g(null,w)}),y=w=>{g(w)},g=(w,b)=>{var V,I;const{element:S,bo:k}=r(),N=w?(V=w[0])==null?void 0:V.code:b,A=JSON.stringify(w||[]),O=(I=ge(k,"NodeFormExp"))==null?void 0:I[0],$=[vn(S,k,{formKey:N})];if(O)$.push(vn(S,O,{body:A}));else{const B=Ve(a.value,"NodeFormExp",{body:A});$.push(...Mt(a.value,S,k,B))}Te(a.value,$)},C=async w=>{try{s.value=!0,await R8(w)}catch(b){console.error(b)}finally{s.value=!1}},x=async w=>{try{const{data:b=[]}=await D8(w);m.value=b}catch(b){console.error(b),m.value=[]}},D=async(w,b)=>{try{const{data:S=[]}=await Dl({formType:w,formCode:b});p.value=S.map(k=>({...k,operateType:1}))}catch(S){console.error(S),p.value=[]}},_=()=>{const w=m.value.reduce((b,S)=>(b[S.makKey]=S.operateType,b),{});p.value.forEach(b=>{b.operateType=w[b.makKey]||1})},T=async()=>{var w,b,S;try{E();const k=n==null?void 0:n.value,N=k==null?void 0:k.businessObject;if(!N)return;const A=Lt(N);if(c.value=so(a.value),l.value=N.get("formKey"),i.value=Number(((w=A.find($=>$.$type==="flowable:NodeFormType"))==null?void 0:w.body)||0).valueOf(),u.value=JSON.parse(((b=A.find($=>$.$type==="flowable:NodeFormExp"))==null?void 0:b.get("body"))||"[]"),i.value===1)return;s.value=!0;const O=i.value?l.value:c.value;if(i.value===2&&!l.value)return;await D(i.value,O),await x({activityId:(S=n.value)==null?void 0:S.id,formCode:O,modelKey:c.value}),p.value.length&&_()}finally{s.value=!1}},E=()=>{i.value=0,p.value=[],u.value=l.value=void 0};return Ie(()=>T()),(w,b)=>{const S=be,k=e.resolveComponent("a-tag"),N=e.resolveComponent("a-radio"),A=e.resolveComponent("a-radio-group"),O=qe,$=e.resolveComponent("a-input"),V=e.resolveComponent("a-divider"),I=e.resolveComponent("a-table"),B=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(B,{key:"NodeForm"},{header:e.withCtx(()=>[e.createVNode(S,{name:"BookText"}),e.createTextVNode(e.toDisplayString(w.$t("NodeForm"))+" ",1),l.value?(e.openBlock(),e.createBlock(k,{key:0,color:"blue"},{default:e.withCtx(()=>[e.createVNode(S,{name:"Pointer"})]),_:1})):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(O,{"label-width":cc,label:w.$t("FormKey")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:i.value,"onUpdate:modelValue":b[0]||(b[0]=Z=>i.value=Z),type:"button",size:"mini",onChange:f},{default:e.withCtx(()=>[e.createVNode(N,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("MainForm")),1)]),_:1}),e.createVNode(N,{value:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("ChooseForm")),1)]),_:1}),e.createVNode(N,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("Custom")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),Bv,e.createVNode(e.Transition,{name:"collapse-slider"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(O,{"label-width":cc,prefix:!1},{default:e.withCtx(()=>[i.value===1?(e.openBlock(),e.createBlock($,{key:0,modelValue:l.value,"onUpdate:modelValue":b[1]||(b[1]=Z=>l.value=Z),placeholder:w.$t("Please enter the form code"),onInput:e.unref(h)},null,8,["modelValue","placeholder","onInput"])):e.createCommentVNode("",!0),i.value===2?(e.openBlock(),e.createBlock(Lv,{key:1,data:u.value,"onUpdate:data":b[2]||(b[2]=Z=>u.value=Z),onChange:y},null,8,["data"])):e.createCommentVNode("",!0)]),_:1},512),[[e.vShow,i.value]])]),_:1}),e.createVNode(V,null,{default:e.withCtx(()=>[e.createVNode(S,{name:"LibraryBig"}),e.createElementVNode("span",null,e.toDisplayString(w.$t("FormPermissions")),1)]),_:1}),e.createVNode(I,{columns:e.unref(d),data:p.value,scroll:{y:200},pagination:!1,loading:s.value,class:"node-form__table"},{operation:e.withCtx(({record:Z})=>[e.createVNode(A,{modelValue:Z.operateType,"onUpdate:modelValue":L=>Z.operateType=L,type:"button",size:"mini",onChange:L=>C(Z)},{default:e.withCtx(()=>[e.createVNode(N,{value:3},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("Required")),1)]),_:1}),e.createVNode(N,{value:2},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("CanEdit")),1)]),_:1}),e.createVNode(N,{value:1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("OnlyVisible")),1)]),_:1}),e.createVNode(N,{value:0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(w.$t("Hidden")),1)]),_:1})]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:1},8,["columns","data","loading"])]),_:1})}}}),Mv=e.defineComponent({name:"TaskListener",__name:"TaskListener",setup(o){const{t}=Le.useI18n(),n=e.inject(De),a=e.inject(we);e.inject(Ko);let r,i,s;const l=e.computed(()=>[{title:t("EventType"),width:100,ellipsis:!0,tooltip:!0,dataIndex:"event",render:({record:_})=>_.event?t(_.event):"-"},{title:t("ListenerType"),ellipsis:!0,tooltip:!0,dataIndex:"listenerType",render:({record:_})=>_.listenerType?t(_.listenerType):"-"},{title:t("ListenerContent"),ellipsis:!0,tooltip:!0,dataIndex:"listenerContent",render:({record:_})=>_.listenerContent?t(_.listenerContent):"-"},{title:t("Operation"),width:160,slotName:"operation"}]),c=e.shallowRef([]),u=e.shallowRef([]),d=e.shallowRef([]);let p,m=e.ref(-1);const f=e.ref(),h=e.ref(!1),y=_=>{const T=s[_];ea(a.value,r,i,T)},g=(_,T)=>{f.value=_,T!==void 0?(m.value=T,p=s[T]):(m.value=-1,p=null),h.value=!0},C=async _=>(m.value>-1?x(_):D(_),!0),x=_=>{it(a.value.get("modeling"),r,p,{...ud(a.value,_.listenerType,_.listenerContent),event:_.event,fields:_.fields.map(T=>Vr(a.value,T,p))})},D=_=>{const T=fd(a.value,_,"TaskListener");Dt(a.value,r,i,T)};return Ie(()=>{if(r=n==null?void 0:n.value,!r){c.value=[],s=i=void 0;return}i=dd(r),u.value=ld("TaskListener"),d.value=cd(),s=ge(i,"TaskListener"),c.value=pd(s)}),(_,T)=>{const E=be,w=e.resolveComponent("a-tag"),b=e.resolveComponent("a-button"),S=e.resolveComponent("a-popconfirm"),k=e.resolveComponent("a-table"),N=e.resolveComponent("icon-plus"),A=sd,O=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(O,{key:"TaskListener"},{header:e.withCtx(()=>[e.createVNode(E,{name:"BellPlus"}),e.createTextVNode(e.toDisplayString(_.$t("TaskListener"))+" ",1),e.createVNode(w,{color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c).length),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(k,{columns:e.unref(l),data:e.unref(c),scroll:{y:240},pagination:!1},{operation:e.withCtx(({record:$,rowIndex:V})=>[e.createVNode(b,{type:"text",onClick:I=>g($,V)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(S,{position:"left",content:_.$t("AreYouSureYouWantToDelete?"),"ok-text":_.$t("Confirm"),"cancel-text":_.$t("Cancel"),onOk:I=>y(V)},{default:e.withCtx(()=>[e.createVNode(b,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode(b,{type:"primary",class:"inline-large-button",long:"",onClick:T[0]||(T[0]=$=>g())},{default:e.withCtx(()=>[e.createVNode(N),e.createTextVNode(" "+e.toDisplayString(_.$t("AddListener")),1)]),_:1}),e.createVNode(A,{visible:e.unref(h),"onUpdate:visible":T[1]||(T[1]=$=>e.isRef(h)?h.value=$:null),form:e.unref(f),"onUpdate:form":T[2]||(T[2]=$=>e.isRef(f)?f.value=$:null),"listener-type":"taskListener",title:_.$t("TaskListener"),"event-type-options":e.unref(u),"listener-type-options":e.unref(d),confirm:C},null,8,["visible","form","title","event-type-options","listener-type-options"])]),_:1})}}}),Fv={class:"panel-table-header"},jv={class:"table-header_text"},qv={class:"panel-table-header"},Uv={class:"table-header_text"},Hv=e.defineComponent({__name:"UserTaskFreeApproval",setup(o){const{t}=Le.useI18n(),n=e.inject(De),a=e.inject(we);e.inject(Ko);const r=e.ref(!1),i=e.ref(""),s=e.ref("NextUser"),l=e.ref(0),c=e.ref({}),u=e.shallowRef(null),d=Ye(t("NameCanNotBeEmpty")),p=Ye(t("CodeCanNotBeEmpty")),m={create:{NextUser:"CreateNewNextUser",NextFlow:"CreateNewNextFlow"},edit:{NextUser:"EditNewNextUser",NextFlow:"EditNewNextFlow"}},f=e.computed(()=>[{title:t("Name"),ellipsis:!0,tooltip:!0,dataIndex:"name"},{title:t("Code"),ellipsis:!0,tooltip:!0,dataIndex:"code"},{title:t("IsMultiple"),ellipsis:!0,tooltip:!0,dataIndex:"multiple",render:({record:k})=>k.multiple?t("True"):t("False")},{title:t("Operation"),width:160,slotName:"operation"}]),h=e.ref([]),y=e.computed(()=>[{title:t("Name"),ellipsis:!0,tooltip:!0,dataIndex:"name"},{title:t("Code"),ellipsis:!0,tooltip:!0,dataIndex:"code"},{title:t("Operation"),width:160,slotName:"operation"}]),g=e.ref([]),C=e.computed(()=>h.value.length+g.value.length),x=k=>{l.value=-1,s.value=k,i.value=t(m.create[k]),c.value={},r.value=!0},D=(k,N,A)=>{l.value=A,s.value=k,i.value=t(m.edit[k]),c.value={...N},r.value=!0},_=(k,N)=>{k==="NextUser"?h.value.splice(N,1):g.value.splice(N,1),b(k)},T=()=>{var k;(k=u.value)==null||k.validate().then(N=>{if(N)return N;l.value>0?E():w(),r.value=!1})},E=()=>{s.value==="NextUser"?h.value.splice(l.value,1,{...c.value}):g.value.splice(l.value,1,{...c.value}),b(s.value)},w=()=>{s.value==="NextUser"?h.value.push({...c.value}):g.value.push({...c.value}),b(s.value)},b=k=>{var Z;const N=n==null?void 0:n.value,A=N==null?void 0:N.businessObject;if(!A)return;const O=k==="NextUser"?"NextUser":"NextSequenceFlow",$=k==="NextUser"?h.value:g.value,V=$!=null&&$.length?JSON.stringify($):void 0,I=a.value.get("modeling");let B=(Z=ge(A,O))==null?void 0:Z[0];if(B){V?Fe(I,N,B,"body",V):ea(a.value,N,A,B);return}V&&(B=Ve(a.value,O,{body:V}),Dt(a.value,N,A,B))};return Ie(()=>{var $,V;h.value=[],g.value=[];const k=n==null?void 0:n.value,N=k==null?void 0:k.businessObject;if(!N)return;const A=($=ge(N,"NextUser"))==null?void 0:$[0],O=(V=ge(N,"NextSequenceFlow"))==null?void 0:V[0];A&&(h.value=JSON.parse(A.get("body")||"[]")),O&&(g.value=JSON.parse(O.get("body")||"[]"))}),(k,N)=>{const A=be,O=e.resolveComponent("a-tag"),$=e.resolveComponent("icon-plus"),V=e.resolveComponent("a-button"),I=e.resolveComponent("a-popconfirm"),B=e.resolveComponent("a-table"),Z=e.resolveComponent("a-divider"),L=e.resolveComponent("a-input"),F=e.resolveComponent("a-form-item"),G=e.resolveComponent("a-switch"),ae=e.resolveComponent("a-form"),le=e.resolveComponent("a-drawer"),U=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(U,{key:"UserTaskFreeApproval"},{header:e.withCtx(()=>[e.createVNode(A,{name:"Wrench"}),e.createTextVNode(e.toDisplayString(k.$t("UserTaskFreeApproval"))+" ",1),e.createVNode(O,{color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(C)),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",Fv,[e.createVNode(A,{name:"UserRound"}),e.createElementVNode("span",jv,e.toDisplayString(k.$t("NextUserList")),1),e.createVNode(V,{type:"primary",onClick:N[0]||(N[0]=te=>x("NextUser"))},{default:e.withCtx(()=>[e.createVNode($),e.createTextVNode(" "+e.toDisplayString(k.$t("CreateNewNextUser")),1)]),_:1})]),e.createVNode(B,{columns:e.unref(f),data:e.unref(h),scroll:{y:240},pagination:!1},{operation:e.withCtx(({record:te,rowIndex:Q})=>[e.createVNode(V,{type:"text",onClick:J=>D("NextUser",te,Q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(I,{position:"left",content:k.$t("AreYouSureYouWantToDelete?"),"ok-text":k.$t("Confirm"),"cancel-text":k.$t("Cancel"),onOk:J=>_("NextUser",Q)},{default:e.withCtx(()=>[e.createVNode(V,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode(Z,{type:"dashed",margin:"12px"}),e.createElementVNode("div",qv,[e.createVNode(A,{name:"MoveUpRight"}),e.createElementVNode("span",Uv,e.toDisplayString(k.$t("NextFlowList")),1),e.createVNode(V,{type:"primary",onClick:N[1]||(N[1]=te=>x("NextFlow"))},{default:e.withCtx(()=>[e.createVNode($),e.createTextVNode(" "+e.toDisplayString(k.$t("CreateNewNextFlow")),1)]),_:1})]),e.createVNode(B,{columns:e.unref(y),data:e.unref(g),scroll:{y:240},pagination:!1},{operation:e.withCtx(({record:te,rowIndex:Q})=>[e.createVNode(V,{type:"text",onClick:J=>D("NextFlow",te,Q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(I,{position:"left",content:k.$t("AreYouSureYouWantToDelete?"),"ok-text":k.$t("Confirm"),"cancel-text":k.$t("Cancel"),onOk:J=>_("NextFlow",Q)},{default:e.withCtx(()=>[e.createVNode(V,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode(le,{visible:e.unref(r),"onUpdate:visible":N[6]||(N[6]=te=>e.isRef(r)?r.value=te:null),width:480,title:e.unref(i)},{footer:e.withCtx(()=>[e.createVNode(V,{onClick:N[5]||(N[5]=te=>r.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("Cancel")),1)]),_:1}),e.createVNode(V,{type:"primary",onClick:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("Confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(ae,{ref_key:"modalFormRef",ref:u,model:e.unref(c),"auto-label-width":"","label-align":"right"},{default:e.withCtx(()=>[e.createVNode(F,e.mergeProps({label:k.$t("Name"),field:"name"},e.unref(d)),{default:e.withCtx(()=>[e.createVNode(L,{"model-value":e.unref(c).name,"onUpdate:modelValue":N[2]||(N[2]=te=>e.unref(c).name=te),placeholder:k.$t("Please enter a name")},null,8,["model-value","placeholder"])]),_:1},16,["label"]),e.createVNode(F,e.mergeProps({label:k.$t("Code"),field:"code"},e.unref(p)),{default:e.withCtx(()=>[e.createVNode(L,{"model-value":e.unref(c).code,"onUpdate:modelValue":N[3]||(N[3]=te=>e.unref(c).code=te),placeholder:k.$t("Please enter a code")},null,8,["model-value","placeholder"])]),_:1},16,["label"]),e.unref(s)==="NextUser"?(e.openBlock(),e.createBlock(F,{key:0,label:k.$t("IsMultiple"),field:"multiple"},{default:e.withCtx(()=>[e.createVNode(G,{"model-value":e.unref(c).multiple,"onUpdate:modelValue":N[4]||(N[4]=te=>e.unref(c).multiple=te)},null,8,["model-value"])]),_:1},8,["label"])):e.createCommentVNode("",!0)]),_:1},8,["model"])]),_:1},8,["visible","title"])]),_:1})}}}),Zv=e.defineComponent({name:"ExpirationTimeInput",__name:"ExpirationTimeInput",props:{value:{type:String,default:""},title:{type:String,default:""}},emits:["update:value","change"],setup(o,{emit:t}){const n=o,a=t,r=e.ref(!1),i=e.ref(""),s=e.computed({get:()=>n.value,set:u=>{a("update:value",u),a("change",u)}}),l=()=>{i.value=n.value,r.value=!0},c=()=>(a("update:value",i.value),a("change",i.value),!0);return(u,d)=>{const p=e.resolveComponent("a-input"),m=be,f=e.resolveComponent("a-button"),h=e.resolveComponent("a-input-group"),y=$l,g=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(h,null,{default:e.withCtx(()=>[e.createVNode(p,{modelValue:e.unref(s),"onUpdate:modelValue":d[0]||(d[0]=C=>e.isRef(s)?s.value=C:null),placeholder:u.$t("Please configure the expiration time")},null,8,["modelValue","placeholder"]),e.createVNode(f,{type:"primary",onClick:l},{default:e.withCtx(()=>[e.createVNode(m,{name:"Search"})]),_:1})]),_:1}),e.createVNode(g,{visible:e.unref(r),"onUpdate:visible":d[2]||(d[2]=C=>e.isRef(r)?r.value=C:null),width:"540px",title:o.title,"on-before-ok":c},{default:e.withCtx(()=>[e.unref(r)?(e.openBlock(),e.createBlock(y,{key:0,value:e.unref(i),"onUpdate:value":d[1]||(d[1]=C=>e.isRef(i)?i.value=C:null)},null,8,["value"])):e.createCommentVNode("",!0)]),_:1},8,["visible","title"])],64)}}}),zv={class:"a-string-tag_content"},Gv=e.defineComponent({name:"StringTags",__name:"StringTags",props:{value:{type:String,default:void 0},btnText:{type:String,default:void 0}},emits:["update:value","change"],setup(o,{emit:t}){const n=o,a=t,r=e.computed(()=>n.value&&n.value.length?n.value.split(","):[]),i=e.ref(null),s=e.ref(!1),l=e.ref(""),c=()=>{s.value=!0,e.nextTick(()=>{i.value&&i.value.focus()})},u=()=>{l.value&&(r.value.push(l.value),l.value=""),s.value=!1,p()},d=(m,f)=>{r.value.splice(f,1),p()},p=()=>{const m=r.value.join(",");a("update:value",m),a("change",m)};return(m,f)=>{const h=e.resolveComponent("a-popover"),y=e.resolveComponent("a-tag"),g=e.resolveComponent("a-input"),C=e.resolveComponent("icon-plus"),x=e.resolveComponent("a-space");return e.openBlock(),e.createBlock(x,{wrap:"",class:"a-string-tags"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(D,_)=>(e.openBlock(),e.createBlock(y,{key:D,color:"arcoblue",closable:"",onClose:T=>d(D,_)},{default:e.withCtx(()=>[e.createVNode(h,{content:D},{default:e.withCtx(()=>[e.createElementVNode("span",zv,e.toDisplayString(D),1)]),_:2},1032,["content"])]),_:2},1032,["onClose"]))),128)),e.unref(s)?(e.openBlock(),e.createBlock(g,{key:0,ref_key:"inputRef",ref:i,modelValue:e.unref(l),"onUpdate:modelValue":f[0]||(f[0]=D=>e.isRef(l)?l.value=D:null),modelModifiers:{trim:!0},onKeyup:e.withKeys(u,["enter"]),onBlur:u},null,8,["modelValue"])):(e.openBlock(),e.createBlock(y,{key:1,color:"arcoblue",style:{cursor:"pointer"},onClick:c},{icon:e.withCtx(()=>[e.createVNode(C)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(o.btnText||"addTag"),1)]),_:1}))]),_:1})}}}),Kv={class:"tag-input-flex"},Wv={class:"header-tags"},Yv={class:"tag-input-special-grid"},Jv={class:"left-org-tree"},Xv={class:"tree-content"},Qv={class:"right-table"},e9={class:"table-content"},t9={class:"tag-input-special-grid"},n9={class:"left-org-tree"},o9={class:"tree-content"},a9={class:"right-table"},vd=e.defineComponent({name:"StaticUserTagInput",__name:"StaticUserTagInput",props:{value:{type:String,default:""},data:{type:Array,default:()=>[]},modalTitle:{type:String,default:"Fixed-value variable selection"},multiple:{type:Boolean,default:!0},more:{type:Boolean,default:!0},personSpecial:{type:Boolean,default:!1},processId:{type:String,default:""},validator:{type:Function,default:void 0}},emits:["update:data","update:value","change-data","change-value"],setup(o,{emit:t}){const n=o,a=t,{t:r}=Le.useI18n(),i=e.computed({get:()=>n.value,set:ce=>{a("update:value",ce),a("change-value",ce)}}),s=e.ref(!1),l=e.ref([]),c=e.ref([]);e.watch(()=>n.data,()=>{l.value=(n.data||[]).map(ce=>ce.value),c.value=[...n.data||[]]},{immediate:!0,deep:!0});const u=e.ref(!1),d=e.computed(()=>[{title:r("Person name"),dataIndex:"name"},{title:r("Mobile phone"),dataIndex:"mobile"},{title:r("Mail"),dataIndex:"mail"},{title:r("Company name"),dataIndex:"companyName"},{title:r("Dept name"),dataIndex:"deptName"}]),p=e.computed(()=>[{title:r("Type"),dataIndex:"name"},{title:r("Code"),dataIndex:"code"},{title:r("Company name"),dataIndex:"companyName"}]),m=e.computed(()=>[{title:r("Name"),dataIndex:"name"},{title:r("Variable name"),dataIndex:"value"},{title:r("Remark"),dataIndex:"remark"}]),f=e.reactive({type:n.multiple?"checkbox":"radio",showCheckedAll:!1,onlyCurrent:!1}),h=e.ref([]),y=e.ref(),g=e.ref(""),C=e.ref({pageSize:15,pageNum:1}),x=e.ref({companyId:"",keyword:"",deptId:""}),D=e.computed(()=>En(h.value,"name",g.value)),_=async()=>{var ce;try{h.value=await Al(),await e.nextTick(),(ce=y.value)==null||ce.expandAll(!0)}catch(oe){console.error(oe),h.value=[]}},T=e.ref(0),E=e.ref([]),w=e.ref(),b=async ce=>{try{u.value=!0,ce&&(C.value.pageNum=ce);const{data:{rows:oe=[],total:lt}}=await J2({pager:C.value,entity:x.value});oe.forEach(We=>We.value=We.code),E.value=oe,T.value=lt}catch(oe){console.error(oe),E.value=[],T.value=0}finally{u.value=!1}},S=(ce,{node:oe})=>{x.value.companyId=oe.companyId,oe.sourceType==="2"?x.value.deptId=oe.id:(x.value.deptId="",x.value.companyId=oe.id),b(1)},k=e.ref(""),N=e.ref([]),A=e.ref(),O=e.computed(()=>En(N.value,"cname",k.value)),$=async()=>{var ce;try{N.value=await S8(),await e.nextTick(),(ce=A.value)==null||ce.expandAll(!0)}catch(oe){console.error(oe),N.value=[]}},V=e.ref({orgId:""}),I=e.ref([]),B=e.ref(),Z=e.ref(),L=async()=>{var ce;try{u.value=!0;const oe=!n.multiple&&"one",{data:lt}=await L8({...V.value,flag:oe});I.value=lt,(ce=B.value)==null||ce.expandAll()}catch{I.value=[]}finally{u.value=!1}},F=async(ce,{node:oe})=>{V.value.orgId=oe.id,await L()},G=e.ref([]),ae=e.ref(),le=async()=>{try{u.value=!0;const{data:ce}=await B8(n.processId);G.value=ce}catch{G.value=[]}finally{u.value=!1}},U=e.ref([]),te=e.ref(),Q=async()=>{try{u.value=!0;const ce=!n.multiple&&"one",{data:oe}=await M8({flag:ce});U.value=oe}catch{U.value=[]}finally{u.value=!1}},J=e.ref([]),ne=e.ref(),ye=async()=>{try{u.value=!0;const ce=!n.multiple&&"one",{data:oe}=await P8({flag:ce});J.value=oe}catch{J.value=[]}finally{u.value=!1}},P=e.ref([]),M=e.ref(),q=async()=>{try{u.value=!0;const{data:ce}=await j8();P.value=ce}catch{P.value=[]}finally{u.value=!1}},ee=e.ref([]),re=e.ref(),se=async()=>{try{u.value=!0;const{data:ce}=await q8();ee.value=ce}catch{ee.value=[]}finally{u.value=!1}},ie=e.ref([]),Ee=e.ref(),Je=async()=>{try{u.value=!0;const{data:ce}=await Z8();ie.value=ce}catch{ie.value=[]}finally{u.value=!1}},pt=e.ref([]),Rt=e.ref(),ve=async()=>{try{u.value=!0;const{data:ce}=await F8();pt.value=ce}catch{pt.value=[]}finally{u.value=!1}},Ht=e.ref("person"),xe={person:E,role:I,form:G,companyMatrix:U,groupMatrix:J,company:P,group:ee,author:ie,basic:pt},Zt={person:w,role:B,form:ae,companyMatrix:te,groupMatrix:ne,company:M,group:re,author:Ee,basic:Rt},o0=(ce,oe)=>ce.value===oe,Ft=(ce,oe,lt)=>{const We=ce==="role"?lt:xe[ce].value;if(!n.multiple){const Ge=We.find(et=>o0(et,oe));c.value=[{...Ge,tabKey:ce}];return}const ft=c.value.findIndex(Ge=>o0(Ge,oe));if(ft>-1){c.value.splice(ft,1);return}const ht=We.find(Ge=>o0(Ge,oe));c.value.push({...ht,tabKey:ce}),n.personSpecial&&(ce==="person"?c.value=c.value.filter(Ge=>Ge.tabKey==="person"):c.value=c.value.filter(Ge=>Ge.tabKey!=="person"),l.value=c.value.map(Ge=>Ge.value))},mt=(ce,oe,lt)=>{var ht,Ge,et;const We=oe.value,ft=c.value.findIndex(St=>o0(St,We))>-1;ce==="role"?Array.isArray(Z.value)?(ht=Z.value)==null||ht.forEach(St=>{St==null||St.select(We,!ft)}):(Ge=Z.value)==null||Ge.select(We,!ft):(et=Zt[ce].value)==null||et.select(We,!ft),Ft(ce,We,lt)},H0=(ce,oe)=>{l.value=l.value.filter(lt=>lt!==ce.value),c.value.splice(oe,1)},un=async()=>{try{u.value=!0,s.value=!0,await Promise.all([_(),$(),b(1)])}finally{u.value=!1}},It=ce=>{switch(ce){case"person":!E.value.length&&b(1);return;case"role":return;case"form":!G.value.length&&le();return;case"companyMatrix":!U.value.length&&Q();return;case"groupMatrix":!J.value.length&&ye();return;case"company":!P.value.length&&q();return;case"group":!ee.value.length&&se();return;case"author":!ie.value.length&&Je();return;case"basic":!pt.value.length&&ve();return}},$n=()=>{a("update:data",[...c.value]),a("change-data",[...c.value])};return(ce,oe)=>{const lt=st,We=be,ft=e.resolveComponent("a-button"),ht=e.resolveComponent("a-input-group"),Ge=e.resolveComponent("a-tag"),et=e.resolveComponent("a-input"),St=e.resolveComponent("a-tree"),Tt=e.resolveComponent("a-table"),vt=e.resolveComponent("a-tab-pane"),dn=e.resolveComponent("a-tabs"),A0=e.resolveComponent("a-spin"),pn=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(ht,null,{default:e.withCtx(()=>[e.createVNode(lt,{modelValue:e.unref(i),"onUpdate:modelValue":oe[0]||(oe[0]=pe=>e.isRef(i)?i.value=pe:null),validator:o.validator,placeholder:"请输入审批人"},null,8,["modelValue","validator"]),e.createVNode(ft,{type:"primary",onClick:un},{default:e.withCtx(()=>[e.createVNode(We,{name:"Search"})]),_:1})]),_:1}),e.createVNode(pn,{visible:e.unref(s),"onUpdate:visible":oe[28]||(oe[28]=pe=>e.isRef(s)?s.value=pe:null),width:"80vw",title:ce.$t(o.modalTitle),onOk:$n},{default:e.withCtx(()=>[e.createVNode(A0,{loading:e.unref(u),style:{width:"100%",height:"calc(100vh - 142px)",overflow:"hidden","box-sizing":"border-box"}},{default:e.withCtx(()=>[e.createElementVNode("div",Kv,[e.createElementVNode("div",Wv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(pe,Ue)=>(e.openBlock(),e.createBlock(Ge,{key:pe.value,color:"arcoblue",closable:"",onClose:a0=>H0(pe,Ue)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(pe.name),1)]),_:2},1032,["onClose"]))),128))]),e.createVNode(dn,{"active-key":e.unref(Ht),"onUpdate:activeKey":oe[27]||(oe[27]=pe=>e.isRef(Ht)?Ht.value=pe:null),onTabClick:It},{default:e.withCtx(()=>[e.createVNode(vt,{key:"person",title:ce.$t("Person")},{default:e.withCtx(()=>[e.createElementVNode("div",Yv,[e.createElementVNode("div",Jv,[e.createVNode(ht,null,{default:e.withCtx(()=>[e.createVNode(et,{modelValue:e.unref(g),"onUpdate:modelValue":oe[1]||(oe[1]=pe=>e.isRef(g)?g.value=pe:null),placeholder:ce.$t("Please enter a name"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(ft,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(We,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",Xv,[e.createVNode(St,{ref_key:"orgTreeRef",ref:y,data:e.unref(D),"field-names":{title:"name",key:"id"},size:"mini","block-node":"","default-expand-all":"",onSelect:S},null,8,["data"])])]),e.createElementVNode("div",Qv,[e.createVNode(ht,null,{default:e.withCtx(()=>[e.createVNode(et,{modelValue:e.unref(x).keyword,"onUpdate:modelValue":oe[2]||(oe[2]=pe=>e.unref(x).keyword=pe),placeholder:ce.$t("Please enter a keyword or name"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(ft,{type:"primary",onClick:oe[3]||(oe[3]=pe=>b(1))},{default:e.withCtx(()=>[e.createVNode(We,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",e9,[e.createVNode(Tt,{ref_key:"personTableRef",ref:w,"selected-keys":e.unref(l),"onUpdate:selectedKeys":oe[4]||(oe[4]=pe=>e.isRef(l)?l.value=pe:null),"row-key":"value",scroll:{y:"100%"},"row-selection":e.unref(f),columns:e.unref(d),data:e.unref(E),pagination:{current:e.unref(C).pageNum,pageSize:e.unref(C).pageSize,itemCount:e.unref(T),pageSizeOptions:[15,30,50,100],showTotal:!0,showPageSize:!0,onPageSizeChange:pe=>(e.unref(C).pageSize=pe)&&b(1),onChange:b},onRowClick:oe[5]||(oe[5]=pe=>mt("person",pe)),onSelect:oe[6]||(oe[6]=(pe,Ue)=>Ft("person",Ue))},null,8,["selected-keys","row-selection","columns","data","pagination"])])])])]),_:1},8,["title"]),e.createVNode(vt,{key:"role",title:ce.$t("Roles")},{default:e.withCtx(()=>[e.createElementVNode("div",t9,[e.createElementVNode("div",n9,[e.createVNode(ht,null,{default:e.withCtx(()=>[e.createVNode(et,{modelValue:e.unref(k),"onUpdate:modelValue":oe[7]||(oe[7]=pe=>e.isRef(k)?k.value=pe:null),placeholder:ce.$t("Please enter a name"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(ft,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(We,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",o9,[e.createVNode(St,{ref_key:"companyTreeRef",ref:A,data:e.unref(O),"field-names":{title:"cname",key:"id"},size:"mini","block-node":"","default-expand-all":"",onSelect:F},null,8,["data"])])]),e.createElementVNode("div",a9,[e.createVNode(Tt,{ref_key:"roleTableRef",ref:B,"row-key":"code",scroll:{y:"100%"},expandable:{title:" ",width:40},columns:e.unref(p),data:e.unref(I),pagination:!1,"default-expand-all-rows":""},{"expand-row":e.withCtx(({record:pe})=>[e.createVNode(Tt,{ref_key:"roleExpandTableRef",ref:Z,"selected-keys":e.unref(l),"onUpdate:selectedKeys":oe[8]||(oe[8]=Ue=>e.isRef(l)?l.value=Ue:null),"row-key":"value","row-selection":e.unref(f),columns:e.unref(m),data:pe.roles,pagination:!1,onRowClick:Ue=>mt("role",Ue,pe.roles),onSelect:(Ue,a0)=>Ft("role",a0,pe.roles)},null,8,["selected-keys","row-selection","columns","data","onRowClick","onSelect"])]),_:1},8,["columns","data"])])])]),_:1},8,["title"]),e.createVNode(vt,{key:"form",title:ce.$t("Form")},{default:e.withCtx(()=>[e.createVNode(Tt,{ref_key:"formTableRef",ref:ae,"selected-keys":e.unref(l),"onUpdate:selectedKeys":oe[9]||(oe[9]=pe=>e.isRef(l)?l.value=pe:null),"row-key":"value",scroll:{y:"100%"},"row-selection":e.unref(f),columns:e.unref(m),data:e.unref(G),pagination:!1,onRowClick:oe[10]||(oe[10]=pe=>mt("form",pe)),onSelect:oe[11]||(oe[11]=(pe,Ue)=>Ft("form",Ue))},null,8,["selected-keys","row-selection","columns","data"])]),_:1},8,["title"]),e.createVNode(vt,{key:"companyMatrix",title:ce.$t("Company Matrix")},{default:e.withCtx(()=>[e.createVNode(Tt,{ref_key:"matrixCompanyTableRef",ref:te,"selected-keys":e.unref(l),"onUpdate:selectedKeys":oe[12]||(oe[12]=pe=>e.isRef(l)?l.value=pe:null),"row-key":"value",scroll:{y:"100%"},"row-selection":e.unref(f),columns:e.unref(m),data:e.unref(U),pagination:!1,onRowClick:oe[13]||(oe[13]=pe=>mt("companyMatrix",pe)),onSelect:oe[14]||(oe[14]=(pe,Ue)=>Ft("companyMatrix",Ue))},null,8,["selected-keys","row-selection","columns","data"])]),_:1},8,["title"]),e.createVNode(vt,{key:"groupMatrix",title:ce.$t("Group Matrix")},{default:e.withCtx(()=>[e.createVNode(Tt,{ref_key:"matrixGroupTableRef",ref:ne,"selected-keys":e.unref(l),"onUpdate:selectedKeys":oe[15]||(oe[15]=pe=>e.isRef(l)?l.value=pe:null),"row-key":"value",scroll:{y:"100%"},"row-selection":e.unref(f),columns:e.unref(m),data:e.unref(J),pagination:!1,onRowClick:oe[16]||(oe[16]=pe=>mt("groupMatrix",pe)),onSelect:oe[17]||(oe[17]=(pe,Ue)=>Ft("groupMatrix",Ue))},null,8,["selected-keys","row-selection","columns","data"])]),_:1},8,["title"]),o.more?(e.openBlock(),e.createBlock(vt,{key:"company",title:ce.$t("Company")},{default:e.withCtx(()=>[e.createVNode(Tt,{ref_key:"companyTableRef",ref:M,"selected-keys":e.unref(l),"onUpdate:selectedKeys":oe[18]||(oe[18]=pe=>e.isRef(l)?l.value=pe:null),"row-key":"value",scroll:{y:"100%"},"row-selection":e.unref(f),columns:e.unref(m),data:e.unref(P),pagination:!1,onRowClick:oe[19]||(oe[19]=pe=>mt("company",pe)),onSelect:oe[20]||(oe[20]=(pe,Ue)=>Ft("company",Ue))},null,8,["selected-keys","row-selection","columns","data"])]),_:1},8,["title"])):e.createCommentVNode("",!0),o.more?(e.openBlock(),e.createBlock(vt,{key:"group",title:ce.$t("Group")},{default:e.withCtx(()=>[e.createVNode(Tt,{ref_key:"groupTableRef",ref:re,"selected-keys":e.unref(l),"onUpdate:selectedKeys":oe[21]||(oe[21]=pe=>e.isRef(l)?l.value=pe:null),"row-key":"value",scroll:{y:"100%"},"row-selection":e.unref(f),columns:e.unref(m),data:e.unref(ee),pagination:!1,onRowClick:oe[22]||(oe[22]=pe=>mt("group",pe)),onSelect:oe[23]||(oe[23]=(pe,Ue)=>Ft("group",Ue))},null,8,["selected-keys","row-selection","columns","data"])]),_:1},8,["title"])):e.createCommentVNode("",!0),o.more?(e.openBlock(),e.createBlock(vt,{key:"author",title:ce.$t("Author")},{default:e.withCtx(()=>[e.createVNode(Tt,{ref_key:"authorTableRef",ref:Ee,"selected-keys":e.unref(l),"onUpdate:selectedKeys":oe[24]||(oe[24]=pe=>e.isRef(l)?l.value=pe:null),"row-key":"value",scroll:{y:"100%"},"row-selection":e.unref(f),columns:e.unref(m),data:e.unref(ie),pagination:!1,onRowClick:oe[25]||(oe[25]=pe=>mt("author",pe)),onSelect:oe[26]||(oe[26]=(pe,Ue)=>Ft("author",Ue))},null,8,["selected-keys","row-selection","columns","data"])]),_:1},8,["title"])):e.createCommentVNode("",!0)]),_:1},8,["active-key"])])]),_:1},8,["loading"])]),_:1},8,["visible","title"])],64)}}}),r9={key:0,style:{"max-width":"40vw","word-break":"break-word","white-space":"normal",display:"inline-block",overflow:"hidden"}},i9={key:0,style:{"max-width":"40vw","word-break":"break-word","white-space":"normal",display:"inline-block",overflow:"hidden"}},uc=96,s9=e.defineComponent({__name:"UserTask",setup(o){const{t}=Le.useI18n(),n=e.inject(De),a=e.inject(we),r=e.ref(),i=e.ref(),s=e.ref(),l=Ae({delay:0,trailing:!0},(L,F)=>{const G=n.value,ae=Gt(G,L,F);Ol(a.value,ae.context)}),c=()=>{l("priority",s.value)},u=()=>{l("dueDate",i.value)},d=e.ref(),p=e.ref(),m=e.ref(),f=e.ref("static"),h=e.ref("static"),y=e.ref("candidate"),g=e.ref(),C=e.ref(),x=e.ref(),D=e.ref(),_=()=>!!(d.value||p.value||m.value),T=(L,F)=>{const G=n.value,ae=[Gt(G,"assignee",L||void 0),xt(a.value,G,"StaticAssigneeVariables",JSON.stringify(F))];return Te(a.value,ae)},E=L=>{const F=L.map(ae=>ae.value).toString(),G=L.map(({name:ae,tabKey:le,value:U})=>({name:ae,tabKey:le,value:U}));T(F,G)},w=L=>{T(L,[])},b=()=>{l("candidateUsers",p.value)},S=()=>{l("candidateGroups",m.value)},k=()=>{const L=n.value,F=JSON.stringify(C.value),G=C.value.map(le=>le.code).join(","),ae=[Gt(L,"assignee",G),xt(a.value,L,"IdmAssignee",F)];return Te(a.value,ae)},N=()=>{const L=n.value,F=x.value,G=JSON.stringify(F),ae=F.map(U=>U.code).toString(),le=[Gt(L,"candidateUsers",ae),xt(a.value,L,"IdmCandidateUsers",G)];return Te(a.value,le)},A=()=>{const L=n.value,F=D.value,G=JSON.stringify(F),ae=F.map(U=>U.sn).toString(),le=[Gt(L,"candidateGroups",ae),xt(a.value,L,"IdmCandidateGroups",G)];return Te(a.value,le)},O=()=>d.value||p.value||m.value,$=()=>{const L=n.value;h.value=f.value;const F=[Gh(L)];f.value==="static"?(F.push(Wh(a.value,L)),F.push(Kh(a.value,L)),F.push(...ws(a.value,L,"static"))):F.push(...ws(a.value,L,"idm")),Te(a.value,F)},V=()=>{if(h.value===f.value)return;O()?Xt.Modal.warning({title:t("WarningMessage"),hideCancel:!1,content:t("ThisOperationWillClearTheSelectedData,DoYouWantToContinue?"),onOk:()=>$(),onCancel(){f.value=h.value},onClose(){f.value=h.value}}):$()},I=L=>{var le;const F=n.value;if(L==="starter"){const U=[Gt(F,"assignee","${starterCode}")];return Te(a.value,U)}const G=(le=C.value)==null?void 0:le.map(U=>U.code).join(","),ae=[Gt(F,"assignee",G)];return Te(a.value,ae)},B=()=>{var Q,J,ne,ye,P;Z();const F=n.value.businessObject;if(!F)return;i.value=So(F,"dueDate"),s.value=So(F,"priority"),r.value=so(a.value);const G=ge(F,"AssigneeType");f.value=((Q=G==null?void 0:G[0])==null?void 0:Q.get("body"))||"static",h.value=f.value,d.value=So(F,"assignee"),p.value=So(F,"candidateUsers"),m.value=So(F,"candidateGroups");const ae=(J=ge(F,"StaticAssigneeVariables"))==null?void 0:J[0];ae&&(g.value=JSON.parse(ae.get("body")||"[]"));const le=(ne=ge(F,"IdmAssignee"))==null?void 0:ne[0];le&&(C.value=JSON.parse(le.get("body")||"[]"));const U=(ye=ge(F,"IdmCandidateUsers"))==null?void 0:ye[0],te=(P=ge(F,"IdmCandidateGroups"))==null?void 0:P[0];(U||te)&&(x.value=JSON.parse((U==null?void 0:U.get("body"))||"[]"),D.value=JSON.parse((te==null?void 0:te.get("body"))||"[]")),y.value=d.value==="${starterCode}"?"starter":"specify"},Z=()=>{y.value=void 0,i.value=s.value=g.value=void 0,d.value=p.value=m.value=void 0,C.value=x.value=D.value=void 0};return Ie(B),(L,F)=>{const G=be,ae=e.resolveComponent("icon-question-circle-fill"),le=e.resolveComponent("a-popover"),U=vd,te=qe,Q=Gv,J=e.resolveComponent("a-tab-pane"),ne=e.resolveComponent("a-radio"),ye=e.resolveComponent("a-radio-group"),P=xr,M=ed,q=e.resolveComponent("a-tabs"),ee=Zv,re=e.resolveComponent("a-input-number"),se=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(se,{key:"UserTask"},{header:e.withCtx(()=>[e.createVNode(G,{name:"UserRound"}),e.createTextVNode(e.toDisplayString(L.$t("UserTask")),1)]),default:e.withCtx(()=>[e.createVNode(q,{"active-key":e.unref(f),"onUpdate:activeKey":F[8]||(F[8]=ie=>e.isRef(f)?f.value=ie:null),position:"left",style:{margin:"12px 0"},onTabClick:V},{default:e.withCtx(()=>[e.createVNode(J,{key:"static"},{title:e.withCtx(()=>[e.createVNode(le,{position:"tr"},{content:e.withCtx(()=>[L.$slots.tooltip?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r9,e.toDisplayString(L.$t("One of the three roles can be assigned, candidates, and candidates"))+"。",1))]),default:e.withCtx(()=>[e.createVNode(ae,{style:{"margin-right":"6px"}})]),_:1}),e.createElementVNode("span",null,e.toDisplayString(L.$t("StaticValue")),1)]),default:e.withCtx(()=>[e.createVNode(te,{"label-width":"min",label:L.$t("AssigneeUsers")},{default:e.withCtx(()=>[e.createVNode(U,{data:e.unref(g),"onUpdate:data":F[0]||(F[0]=ie=>e.isRef(g)?g.value=ie:null),value:e.unref(d),"onUpdate:value":F[1]||(F[1]=ie=>e.isRef(d)?d.value=ie:null),"process-id":e.unref(r),multiple:!1,validator:_,onChangeData:E,onChangeValue:w},null,8,["data","value","process-id"])]),_:1},8,["label"]),e.createVNode(te,{"label-width":"min",label:L.$t("CandidateUsers")},{default:e.withCtx(()=>[e.createVNode(Q,{value:e.unref(p),"onUpdate:value":F[2]||(F[2]=ie=>e.isRef(p)?p.value=ie:null),"btn-text":L.$t("Add"),onChange:b},null,8,["value","btn-text"])]),_:1},8,["label"]),e.createVNode(te,{"label-width":"min",label:L.$t("CandidateGroups")},{default:e.withCtx(()=>[e.createVNode(Q,{value:e.unref(m),"onUpdate:value":F[3]||(F[3]=ie=>e.isRef(m)?m.value=ie:null),"btn-text":L.$t("Add"),onChange:S},null,8,["value","btn-text"])]),_:1},8,["label"])]),_:1}),e.createVNode(J,{key:"idm"},{title:e.withCtx(()=>[e.createVNode(le,{position:"tr"},{content:e.withCtx(()=>[L.$slots.tooltip?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",i9,e.toDisplayString(L.$t("One of the three roles can be assigned, candidates, and candidates"))+"。"+e.toDisplayString(L.$t("Attention"))+"："+e.toDisplayString(L.$t("If you set it as the initiator, the default assigning person is the process initiator user")),1))]),default:e.withCtx(()=>[e.createVNode(ae,{style:{"margin-right":"6px"}})]),_:1}),e.createElementVNode("span",null,e.toDisplayString(L.$t("IdentityStorage")),1)]),default:e.withCtx(()=>[e.createVNode(te,{"label-width":"min",label:L.$t("SpecifyAssignee")},{default:e.withCtx(()=>[e.createVNode(ye,{modelValue:e.unref(y),"onUpdate:modelValue":F[4]||(F[4]=ie=>e.isRef(y)?y.value=ie:null),size:"mini",type:"button",onChange:I},{default:e.withCtx(()=>[e.createVNode(ne,{value:"specify"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("Specify")),1)]),_:1}),e.createVNode(ne,{value:"starter"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("Starter")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.unref(y)==="specify"?(e.openBlock(),e.createBlock(te,{key:"IdmAssignee","label-width":"min",label:L.$t("AssigneeUsers")},{default:e.withCtx(()=>[e.createVNode(P,{key:"idmAssignee",data:e.unref(C),"onUpdate:data":F[5]||(F[5]=ie=>e.isRef(C)?C.value=ie:null),multiple:!1,validator:_,onChange:k},null,8,["data"])]),_:1},8,["label"])):e.createCommentVNode("",!0),e.createVNode(te,{key:"AssigneeUsers","label-width":"min",label:L.$t("CandidateUsers")},{default:e.withCtx(()=>[e.createVNode(P,{key:"idmCandidateUsers",data:e.unref(x),"onUpdate:data":F[6]||(F[6]=ie=>e.isRef(x)?x.value=ie:null),validator:_,onChange:N},null,8,["data"])]),_:1},8,["label"]),e.createVNode(te,{key:"AssigneeGroups","label-width":"min",label:L.$t("CandidateGroups")},{default:e.withCtx(()=>[e.createVNode(M,{key:"idmCandidateGroups",data:e.unref(D),"onUpdate:data":F[7]||(F[7]=ie=>e.isRef(D)?D.value=ie:null),validator:_,onChange:A},null,8,["data"])]),_:1},8,["label"])]),_:1})]),_:1},8,["active-key"]),e.createVNode(te,{"label-width":uc,label:L.$t("DueDate")},{default:e.withCtx(()=>[e.createVNode(ee,{value:e.unref(i),"onUpdate:value":F[9]||(F[9]=ie=>e.isRef(i)?i.value=ie:null),title:L.$t("DueDate"),onChange:u},null,8,["value","title"])]),_:1},8,["label"]),e.createVNode(te,{"label-width":uc,label:L.$t("Priority")},{default:e.withCtx(()=>[e.createVNode(re,{modelValue:e.unref(s),"onUpdate:modelValue":F[10]||(F[10]=ie=>e.isRef(s)?s.value=ie:null),placeholder:L.$t("Please enter a priority"),"allow-clear":"",onChange:c},null,8,["modelValue","placeholder"])]),_:1},8,["label"])]),_:1})}}}),xo="100px",l9=e.defineComponent({name:"MultiInstance",__name:"MultiInstance",setup(o){const t=e.inject(De),n=e.inject(we),{t:a}=Le.useI18n(),r=e.ref("None"),i=e.ref(),s=e.ref(),l=e.ref(),c=e.ref(),u=e.shallowRef([{name:a("All done"),value:"all"},{name:a("Percent complete"),value:"percentage"},{name:a("Completions"),value:"number"},{name:a("expression"),value:"expression"}]),d=e.shallowRef([{name:a("Greater than"),value:">"},{name:a("Greater than or equal to"),value:">="},{name:a("Equal"),value:"=="},{name:a("Less than"),value:"<"},{name:a("Less than or equal to"),value:"<="}]),p=e.ref(),m=e.ref(),f=e.ref(),h=e.ref(),y=e.ref("Collection variable selector"),g=e.ref(),C=e.computed(()=>r.value!=="None"),x=$=>{const V=t.value,I=V.businessObject,B=n.value.get("modeling");if($==="None")return Fe(B,V,I,"loopCharacteristics",void 0);const Z=Pe(n.value,"bpmn:MultiInstanceLoopCharacteristics",{},I);return $==="Serial"&&(Z.isSequential=!0),Fe(B,V,I,"loopCharacteristics",Z)};Ae({delay:0,trailing:!0},($,V)=>{const I=t.value,B=I.businessObject.get("loopCharacteristics"),Z=n.value.get("modeling");return Fe(Z,I,B,$,V)});const D=Ae({delay:0,trailing:!0},($,V)=>{const I=n.value.get("modeling"),B=t.value,Z=B.businessObject.get("loopCharacteristics");if(!V)return Fe(I,B,Z,$,void 0);const L=Z.get($);if(L)return Fe(I,B,L,"body",V);const F=Pe(n.value,"bpmn:FormalExpression",{body:V},Z);return Fe(I,B,Z,$,F)}),_=Ae({delay:0,trailing:!0},$=>{var L;const V=t.value,I=V.businessObject.get("loopCharacteristics"),B=[{cmd:"element.updateModdleProperties",context:{element:V,moddleElement:I,properties:{elementVariable:$}}}],Z=(L=ge(V.businessObject,"AssigneeType"))==null?void 0:L[0];Z&&Z.get("body")==="static"&&B.push({cmd:"element.updateModdleProperties",context:{element:V,moddleElement:V.businessObject,properties:{assignee:`\${${$}}`}}}),Te(n.value,B)}),T=$=>{D("loopCardinality",$)},E=()=>{m.value="==",c.value=void 0,p.value==="percentage"?f.value=100:p.value==="number"?f.value=1:(f.value=void 0,m.value=void 0),b()},w=()=>{p.value==="percentage"?f.value=100:f.value=1,b()},b=Ae({delay:0,trailing:!0},()=>{let $;const V=p.value,I=m.value||"=";let B=f.value;V==="percentage"?(B=B>100?100:B,$=`\${(nrOfCompletedInstances / nrOfInstances) * 100 ${I} ${B}}`):p.value==="number"?$=`\${nrOfCompletedInstances ${I} ${B}}`:p.value==="expression"?$=c.value||"":$=void 0;const Z=t.value,L=Z.businessObject.get("loopCharacteristics"),F=[];if(S0($))F.push({cmd:"element.updateModdleProperties",context:{element:Z,moddleElement:L,properties:{completionCondition:void 0}}});else{const G=Pe(n.value,"bpmn:FormalExpression",{body:$},L);F.push({cmd:"element.updateModdleProperties",context:{element:Z,moddleElement:L,properties:{completionCondition:G}}})}return F.push(xt(n.value,Z,"MultiCompletionCondition","",{type:V,num:B,conditionType:I})),Te(n.value,F)}),S=($,V)=>{var F;const I=t.value,B=I.businessObject.get("loopCharacteristics"),Z=(F=ge(I.businessObject,"AssigneeType"))==null?void 0:F[0],L=[ic(I,B,"collection",V),ic(I,B,"elementVariable","user"),xt(n.value,I,"MultiInstanceVariables",JSON.stringify($))];return Z&&Z.get("body")==="static"&&L.push(Gt(I,"assignee","${user}")),Te(n.value,L)},k=$=>{if(!$.length)return S($);let V;$.every(I=>I.tabKey==="person")?V=X2($.map(I=>`'${I.code}'`).toString()):V=Q2($.map(I=>I.tabKey==="person"?I.code:I.id).toString()),S($,V)},N=$=>{S([],$)},A=()=>{var L,F,G,ae;O();const $=t==null?void 0:t.value,V=$==null?void 0:$.businessObject;if(!V)return;h.value=so(n.value);const I=(L=ge(V,"MultiInstanceVariables"))==null?void 0:L[0];if(I)try{g.value=JSON.parse(I.get("body")||"[]")}catch(le){console.error(le),g.value=[]}const B=(F=ge(V,"MultiCompletionCondition"))==null?void 0:F[0];B&&(p.value=B.get("type"),m.value=B.get("conditionType"),f.value=B.get("num"));const Z=V.get("loopCharacteristics");Z&&(r.value=Z.get("isSequential")?"Serial":"Parallel",s.value=Z.get("collection"),l.value=Z.get("elementVariable"),c.value=(G=Z.get("completionCondition"))==null?void 0:G.get("body"),i.value=(ae=Z.get("loopCardinality"))==null?void 0:ae.get("body"))},O=()=>{r.value="None",i.value=s.value=g.value=void 0,l.value=c.value=p.value=void 0,m.value="==",f.value=1};return Ie(A),($,V)=>{const I=be,B=e.resolveComponent("a-tag"),Z=e.resolveComponent("a-radio"),L=e.resolveComponent("a-radio-group"),F=qe,G=e.resolveComponent("a-input"),ae=vd,le=st,U=e.resolveComponent("a-option"),te=e.resolveComponent("a-select"),Q=e.resolveComponent("a-input-number"),J=e.resolveComponent("a-button"),ne=e.resolveComponent("a-input-group"),ye=e.resolveComponent("a-space"),P=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(P,{key:"MultiInstance"},{header:e.withCtx(()=>[e.createVNode(I,{name:"Rows3"}),e.createTextVNode(e.toDisplayString($.$t("MultiInstance"))+" ",1),e.unref(C)?(e.openBlock(),e.createBlock(B,{key:0,color:"blue"},{default:e.withCtx(()=>[e.createVNode(I,{name:"Pointer"})]),_:1})):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(F,{"label-width":xo,label:$.$t("MultiInstanceType")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(r),"onUpdate:modelValue":V[0]||(V[0]=M=>e.isRef(r)?r.value=M:null),size:"mini",type:"button",onChange:x},{default:e.withCtx(()=>[e.createVNode(Z,{value:"None"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.$t("None")),1)]),_:1}),e.createVNode(Z,{value:"Parallel"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.$t("Parallel")),1)]),_:1}),e.createVNode(Z,{value:"Serial"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString($.$t("Serial")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.unref(C)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(F,{"label-width":xo,label:$.$t("Cardinality")},{default:e.withCtx(()=>[e.createVNode(G,{modelValue:e.unref(i),"onUpdate:modelValue":V[1]||(V[1]=M=>e.isRef(i)?i.value=M:null),placeholder:$.$t("Please enter a cardinality"),onInput:T},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(F,{"label-width":xo,label:$.$t("Collection")},{default:e.withCtx(()=>[e.createVNode(ae,{data:e.unref(g),"onUpdate:data":V[2]||(V[2]=M=>e.isRef(g)?g.value=M:null),value:e.unref(s),"onUpdate:value":V[3]||(V[3]=M=>e.isRef(s)?s.value=M:null),"process-id":e.unref(h),more:!1,"modal-title":$.$t(e.unref(y)),"person-special":"",onChangeData:k,onChangeValue:N},null,8,["data","value","process-id","modal-title"])]),_:1},8,["label"]),e.createVNode(F,{"label-width":xo,label:$.$t("ElementVariable")},{default:e.withCtx(()=>[e.createVNode(le,{modelValue:e.unref(l),"onUpdate:modelValue":V[4]||(V[4]=M=>e.isRef(l)?l.value=M:null),placeholder:$.$t("Please enter an element variable"),onInput:e.unref(_)},null,8,["modelValue","placeholder","onInput"])]),_:1},8,["label"]),e.createVNode(F,{"label-width":xo,label:$.$t("CompletionCondition")},{tooltip:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString($.$t("As required by the BPMN 2.0 specification, the following variables are provided for the parent execution used to create an execution for each instance"))+":",1),e.createElementVNode("ul",null,[e.createElementVNode("li",null,"nrOfInstances："+e.toDisplayString($.$t("Total number of instances")),1),e.createElementVNode("li",null,"nrOfActiveInstances："+e.toDisplayString($.$t("The number of currently active (yet incomplete) instances. For serial multi-instances, this value is always 1"))+"。",1),e.createElementVNode("li",null,"nrOfCompletedInstances："+e.toDisplayString($.$t("The number of instances that have been completed"))+"。",1),e.createElementVNode("li",null,"loopCounter："+e.toDisplayString($.$t("The index of a given instance in a for-each loop"))+"。",1)])]),default:e.withCtx(()=>[e.createVNode(ye,{direction:"vertical",fill:""},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(p),"onUpdate:modelValue":V[5]||(V[5]=M=>e.isRef(p)?p.value=M:null),size:"mini",type:"button",onChange:E},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),M=>(e.openBlock(),e.createBlock(Z,{key:M.value,value:M.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),e.unref(p)==="number"||e.unref(p)==="percentage"?(e.openBlock(),e.createBlock(ne,{key:0},{default:e.withCtx(()=>[e.createVNode(te,{modelValue:e.unref(m),"onUpdate:modelValue":V[6]||(V[6]=M=>e.isRef(m)?m.value=M:null),size:"mini",style:{width:"120px"},onChange:w},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(d),M=>(e.openBlock(),e.createBlock(U,{key:M.value,value:M.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(M.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(Q,{modelValue:e.unref(f),"onUpdate:modelValue":V[7]||(V[7]=M=>e.isRef(f)?f.value=M:null),style:{flex:"1"},min:1,step:1,max:e.unref(p)==="percentage"?100:1e3,placeholder:e.unref(p)==="percentage"?$.$t("Please enter a percentage of completion"):$.$t("Please enter a the number of completions"),"model-event":"input",onInput:e.unref(b)},null,8,["modelValue","max","placeholder","onInput"]),e.withDirectives(e.createVNode(J,{type:"secondary",disabled:""},{default:e.withCtx(()=>[e.createTextVNode("%")]),_:1},512),[[e.vShow,e.unref(p)==="percentage"]])]),_:1})):e.createCommentVNode("",!0),e.unref(p)==="expression"?(e.openBlock(),e.createBlock(G,{key:1,modelValue:e.unref(c),"onUpdate:modelValue":V[8]||(V[8]=M=>e.isRef(c)?c.value=M:null),placeholder:$.$t("Please enter a complete conditional expression"),onInput:e.unref(b)},null,8,["modelValue","placeholder","onInput"])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["label"])],64)):e.createCommentVNode("",!0)]),_:1})}}}),c9={class:"panel-table-header"},u9={class:"table-header_text"},d9=e.defineComponent({name:"ServiceTask",__name:"ServiceTask",setup(o){const{t}=Le.useI18n(),n=e.ref(100),a=e.inject(De),r=e.inject(we),i=()=>{const I=a.value,B=r.value.get("modeling");return{element:I,modeling:B}},s=Ae({delay:0,trailing:!0},(I,B)=>{const{element:Z,modeling:L}=i();Fe(L,Z,Z.businessObject,I,B,!1)}),l=[{name:"class",value:"class"},{name:"expression",value:"expression"},{name:"delegateExpression",value:"delegateExpression"}],c={class:void 0,expression:void 0,delegateExpression:void 0,resultVariable:void 0},u=e.ref(),d=e.ref(),p=e.ref(),m=e.ref(),f=e.ref(),h=I=>{s("class",I)},y=I=>{s("expression",I)},g=I=>{s("delegateExpression",I)},C=I=>{s("resultVariable",I)},x=I=>{const{element:B,modeling:Z}=i();it(Z,B,B.businessObject,{...c,[I]:""},!1)},D=e.computed(()=>[{title:t("FieldName"),ellipsis:!0,tooltip:!0,dataIndex:"fieldName"},{title:t("FieldType"),ellipsis:!0,tooltip:!0,dataIndex:"fieldType",render:({record:I})=>I.fieldType?t(I.fieldType):"-"},{title:t("FieldValue"),ellipsis:!0,tooltip:!0,dataIndex:"fieldValue"},{title:t("Operation"),width:160,slotName:"operation"}]);let _;const T=e.ref(!1),E=e.ref(),w=e.ref(-1),b=e.ref([]),S=(I,B)=>{E.value=I,B!==void 0?w.value=B:w.value=-1,T.value=!0},k=I=>{const{element:B}=i(),Z=_[I];ea(r.value,B,B.businessObject,Z)},N=I=>{const{element:B}=i(),Z=Vr(r.value,I);Dt(r.value,B,B.businessObject,Z)},A=I=>{const{fieldName:B,fieldType:Z,fieldValue:L}=I,F=_[w.value],{element:G,modeling:ae}=i(),le={name:B,string:void 0,expression:void 0};Z==="string"?le.string=L:le.expression=L,ae.updateModdleProperties(G,F,le)},O=async I=>(w.value>-1?A(I):N(I),!0),$=()=>{V();const I=a==null?void 0:a.value,B=I==null?void 0:I.businessObject;B&&(u.value=d2(B),d.value=B.get("class"),p.value=B.get("expression"),m.value=B.get("delegateExpression"),f.value=B.get("resultVariable"),_=ge(B,"Field"),b.value=md(_))},V=()=>{b.value=[],_=[],d.value=u.value=void 0,p.value=m.value=f.value=void 0};return Ie($),(I,B)=>{const Z=be,L=e.resolveComponent("a-radio"),F=mo,G=qe,ae=e.resolveComponent("a-input"),le=e.resolveComponent("a-divider"),U=be,te=e.resolveComponent("icon-plus"),Q=e.resolveComponent("a-button"),J=e.resolveComponent("a-popconfirm"),ne=e.resolveComponent("a-table"),ye=id,P=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(P,{key:"ServiceTask"},{header:e.withCtx(()=>[e.createVNode(Z,{name:"Bolt"}),e.createTextVNode(e.toDisplayString(I.$t("ServiceTask")),1)]),default:e.withCtx(()=>[e.createVNode(G,{label:I.$t("ServiceTaskNodeType"),"label-width":e.unref(n)},{default:e.withCtx(()=>[e.createVNode(F,{modelValue:e.unref(u),"onUpdate:modelValue":B[0]||(B[0]=M=>e.isRef(u)?u.value=M:null),type:"button",onChange:x},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,M=>e.createVNode(L,{key:M.value,value:M.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.$t(M.name)),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["label","label-width"]),e.unref(u)==="class"?(e.openBlock(),e.createBlock(G,{key:0,label:I.$t("Class"),"label-width":e.unref(n)},{default:e.withCtx(()=>[e.createVNode(qa,{modelValue:e.unref(d),"onUpdate:modelValue":B[1]||(B[1]=M=>e.isRef(d)?d.value=M:null),onInput:h},null,8,["modelValue"])]),_:1},8,["label","label-width"])):e.createCommentVNode("",!0),e.unref(u)==="expression"?(e.openBlock(),e.createBlock(G,{key:1,label:I.$t("expression"),"label-width":e.unref(n)},{default:e.withCtx(()=>[e.createVNode(qa,{modelValue:e.unref(p),"onUpdate:modelValue":B[2]||(B[2]=M=>e.isRef(p)?p.value=M:null),onInput:y},null,8,["modelValue"])]),_:1},8,["label","label-width"])):e.createCommentVNode("",!0),e.unref(u)==="delegateExpression"?(e.openBlock(),e.createBlock(G,{key:2,label:I.$t("delegateExpression"),"label-width":e.unref(n)},{default:e.withCtx(()=>[e.createVNode(qa,{modelValue:e.unref(m),"onUpdate:modelValue":B[3]||(B[3]=M=>e.isRef(m)?m.value=M:null),onInput:g},null,8,["modelValue"])]),_:1},8,["label","label-width"])):e.createCommentVNode("",!0),e.unref(u)==="expression"?(e.openBlock(),e.createBlock(G,{key:3,label:I.$t("ResultVariable"),"label-width":e.unref(n)},{default:e.withCtx(()=>[e.createVNode(ae,{modelValue:e.unref(f),"onUpdate:modelValue":B[4]||(B[4]=M=>e.isRef(f)?f.value=M:null),onInput:C},null,8,["modelValue"])]),_:1},8,["label","label-width"])):e.createCommentVNode("",!0),e.createVNode(le,{type:"dashed",margin:"12px"}),e.createElementVNode("div",c9,[e.createVNode(U,{name:"RectangleEllipsis"}),e.createElementVNode("span",u9,e.toDisplayString(I.$t("InjectField")),1),e.createVNode(Q,{type:"primary",onClick:B[5]||(B[5]=M=>S())},{default:e.withCtx(()=>[e.createVNode(te),e.createTextVNode(" "+e.toDisplayString(I.$t("CreateNewField")),1)]),_:1})]),e.createVNode(ne,{columns:e.unref(D),data:e.unref(b),scroll:{y:"100%"},pagination:!1},{operation:e.withCtx(({record:M,rowIndex:q})=>[e.createVNode(Q,{type:"text",onClick:ee=>S(M,q)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(J,{position:"left",content:I.$t("AreYouSureYouWantToDelete?"),"ok-text":I.$t("Confirm"),"cancel-text":I.$t("Cancel"),onOk:ee=>k(q)},{default:e.withCtx(()=>[e.createVNode(Q,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode(ye,{visible:e.unref(T),"onUpdate:visible":B[6]||(B[6]=M=>e.isRef(T)?T.value=M:null),form:e.unref(E),"onUpdate:form":B[7]||(B[7]=M=>e.isRef(E)?E.value=M:null),title:I.$t("InjectField"),confirm:O},null,8,["visible","form","title"])]),_:1})}}}),p9={class:"panel-table-header"},m9={class:"table-header_text"},dc=e.defineComponent({name:"IoParamsInput",__name:"IoParamsInput",props:{label:{type:String,default:""},type:{type:String,default:"In"},icon:{type:String,default:"SquarePi"}},setup(o,{expose:t}){const n=e.inject(De),a=e.inject(we),r=o,{t:i}=Le.useI18n(),s=e.computed(()=>[{title:i("Source"),ellipsis:!0,tooltip:!0,dataIndex:"source"},{title:i("Target"),ellipsis:!0,tooltip:!0,dataIndex:"target"},{title:i("Operation"),width:160,slotName:"operation"}]),l=e.shallowRef([]),c=e.ref([]),u=e.ref(!1),d=e.ref({}),p=e.ref(0),m=e.shallowRef(null),f=Ye(i("SourceCanNotBeEmpty")),h=Ye(i("TargetCanNotBeEmpty")),y=()=>{p.value=-1,d.value={},u.value=!0},g=(_,T)=>{p.value=T,d.value={..._},u.value=!0},C=_=>{c.value.splice(_,1)},x=()=>{var _;(_=m.value)==null||_.validate().then(T=>{if(T)return T;const E=n==null?void 0:n.value,w=E==null?void 0:E.businessObject;if(w){if(p.value===-1){const b=Ve(a.value,r.type,{...d.value});Dt(a.value,E,w,b)}else{const b=a.value.get("modeling"),S=l.value[p.value],{source:k,target:N}=d.value;it(b,E,S,{source:k,target:N})}u.value=!1}})};return t({initParamsList:()=>{c.value=[];const _=n==null?void 0:n.value,T=_==null?void 0:_.businessObject;T&&(l.value=ge(T,r.type),c.value=l.value.map(E=>({target:E.target,source:E.source})))}}),(_,T)=>{const E=be,w=e.resolveComponent("icon-plus"),b=e.resolveComponent("a-button"),S=e.resolveComponent("a-popconfirm"),k=e.resolveComponent("a-table"),N=e.resolveComponent("a-input"),A=e.resolveComponent("a-form-item"),O=e.resolveComponent("a-form"),$=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",p9,[e.createVNode(E,{name:o.icon},null,8,["name"]),e.createElementVNode("span",m9,e.toDisplayString(r.label),1),e.createVNode(b,{type:"primary",onClick:T[0]||(T[0]=V=>y())},{default:e.withCtx(()=>[e.createVNode(w),e.createTextVNode(" "+e.toDisplayString(_.$t("CreateParams")),1)]),_:1})]),e.createVNode(k,{columns:e.unref(s),data:e.unref(c),scroll:{y:240},pagination:!1},{operation:e.withCtx(({record:V,rowIndex:I})=>[e.createVNode(b,{type:"text",onClick:B=>g(V,I)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(S,{position:"left",content:_.$t("AreYouSureYouWantToDelete?"),"ok-text":_.$t("Confirm"),"cancel-text":_.$t("Cancel"),onOk:B=>C(I)},{default:e.withCtx(()=>[e.createVNode(b,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode($,{visible:e.unref(u),"onUpdate:visible":T[4]||(T[4]=V=>e.isRef(u)?u.value=V:null),width:480,title:_.$t("CreateParams")},{footer:e.withCtx(()=>[e.createVNode(b,{onClick:T[3]||(T[3]=V=>u.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Cancel")),1)]),_:1}),e.createVNode(b,{type:"primary",onClick:x},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(O,{ref_key:"modalFormRef",ref:m,model:e.unref(d),"auto-label-width":"","label-align":"right"},{default:e.withCtx(()=>[e.createVNode(A,e.mergeProps({label:_.$t("Source"),field:"source"},e.unref(f)),{default:e.withCtx(()=>[e.createVNode(N,{"model-value":e.unref(d).source,"onUpdate:modelValue":T[1]||(T[1]=V=>e.unref(d).source=V)},null,8,["model-value"])]),_:1},16,["label"]),e.createVNode(A,e.mergeProps({label:_.$t("Target"),field:"target"},e.unref(h)),{default:e.withCtx(()=>[e.createVNode(N,{"model-value":e.unref(d).target,"onUpdate:modelValue":T[2]||(T[2]=V=>e.unref(d).target=V)},null,8,["model-value"])]),_:1},16,["label"])]),_:1},8,["model"])]),_:1},8,["visible","title"])],64)}}}),f9={class:"tag-input-flex"},h9={class:"header-tags"},v9={class:"tag-input-grid",style:{"--columns":"360px 1fr"}},g9={class:"left-org-tree"},b9={class:"tree-content"},y9={class:"right-table"},E9={class:"table-content"},w9=e.defineComponent({name:"CalledProcessTagInput",__name:"CalledProcessTagInput",props:{data:{type:Array,default:()=>[]},modalTitle:{type:String,default:"Process selection"},multiple:{type:Boolean,default:!1},rowKey:{type:String,default:"modelKey"}},emits:["update:data","change"],setup(o,{emit:t}){const{t:n}=Le.useI18n(),a=o,r=t,i=e.computed(()=>Array.isArray(e.toRaw(a.data))?a.data.map($=>$.name):[]),s=e.ref(!1),l=e.ref([]),c=e.ref([]);e.watch(()=>a.data,()=>{l.value=(a.data||[]).map($=>$[a.rowKey]),c.value=[...a.data||[]]},{immediate:!0,deep:!0});const u=e.ref(!1),d=e.ref([]),p=e.ref(),m=e.ref([]),f=e.ref(0),h=e.ref(""),y=e.ref({pageSize:15,pageNum:1}),g=e.ref({categoryCode:"",keyword:"",modelType:0}),C=e.reactive({type:a.multiple?"checkbox":"radio",showCheckedAll:!1,onlyCurrent:!1}),x=e.ref(),D=e.computed(()=>[{title:n("Name"),dataIndex:"name"},{title:n("Code"),dataIndex:"modelKey"},{title:n("Publishing status"),dataIndex:"statusName"},{title:n("The app it belongs to"),dataIndex:"appName"}]),_=e.computed(()=>En(d.value,"name",h.value)),T=async()=>{var $;try{d.value=await Rl(),await e.nextTick(),($=p.value)==null||$.expandAll(!0)}catch(V){console.error(V),d.value=[]}},E=async $=>{try{u.value=!0,$&&(y.value.pageNum=$);const{data:{rows:V,total:I}}=await V8({pager:y.value,entity:g.value});m.value=V,f.value=I}catch(V){console.error(V),m.value=[],f.value=0}finally{u.value=!1}},w=($,V)=>$[a.rowKey]===V,b=($,{node:V})=>{g.value.categoryCode=V.code,E(1)},S=$=>{var B;const V=$[a.rowKey],I=c.value.findIndex(Z=>w(Z,V))>-1;(B=x.value)==null||B.select($[a.rowKey],!I),k($,V)},k=($,V)=>{if(a.multiple){const I=c.value.findIndex(B=>w(B,V));I>-1?c.value.splice(I,1):c.value.push(m.value.find(B=>w(B,V)))}else c.value=[m.value.find(I=>w(I,V))]},N=($,V)=>{l.value=l.value.filter(I=>I!==$[a.rowKey]),c.value.splice(V,1)},A=()=>{r("update:data",[...c.value]),r("change",[...c.value])},O=async()=>{try{u.value=!0,s.value=!0,await T(),await E()}finally{u.value=!1}};return($,V)=>{const I=kr,B=be,Z=e.resolveComponent("a-button"),L=e.resolveComponent("a-input-group"),F=e.resolveComponent("a-tag"),G=e.resolveComponent("a-input"),ae=e.resolveComponent("a-tree"),le=e.resolveComponent("a-table"),U=e.resolveComponent("a-spin"),te=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(L,null,{default:e.withCtx(()=>[e.createVNode(I,{"model-value":e.unref(i),placeholder:$.$t("Please select a process"),"max-tag-count":3,readonly:"",onFocus:O},null,8,["model-value","placeholder"]),e.createVNode(Z,{type:"primary",onClick:O},{default:e.withCtx(()=>[e.createVNode(B,{name:"Search"})]),_:1})]),_:1}),e.createVNode(te,{visible:e.unref(s),"onUpdate:visible":V[4]||(V[4]=Q=>e.isRef(s)?s.value=Q:null),width:"80vw",title:$.$t(o.modalTitle),onOk:A},{default:e.withCtx(()=>[e.createVNode(U,{loading:e.unref(u),style:{width:"100%",height:"calc(100vh - 142px)",overflow:"hidden","box-sizing":"border-box"}},{default:e.withCtx(()=>[e.createElementVNode("div",f9,[e.createElementVNode("div",h9,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(Q,J)=>(e.openBlock(),e.createBlock(F,{key:Q[o.rowKey],color:"arcoblue",closable:"",onClose:ne=>N(Q,J)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(Q.name),1)]),_:2},1032,["onClose"]))),128))]),e.createElementVNode("div",v9,[e.createElementVNode("div",g9,[e.createVNode(L,null,{default:e.withCtx(()=>[e.createVNode(G,{modelValue:e.unref(h),"onUpdate:modelValue":V[0]||(V[0]=Q=>e.isRef(h)?h.value=Q:null),placeholder:$.$t("Please enter a name"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(Z,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(B,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",b9,[e.createVNode(ae,{ref_key:"orgTreeRef",ref:p,data:e.unref(_),"field-names":{title:"name",key:"code"},size:"mini","block-node":"","default-expand-all":"",onSelect:b},null,8,["data"])])]),e.createElementVNode("div",y9,[e.createVNode(L,null,{default:e.withCtx(()=>[e.createVNode(G,{modelValue:e.unref(g).keyword,"onUpdate:modelValue":V[1]||(V[1]=Q=>e.unref(g).keyword=Q),placeholder:$.$t("Please enter a name or key"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(Z,{type:"primary",onClick:V[2]||(V[2]=Q=>E(1))},{default:e.withCtx(()=>[e.createVNode(B,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",E9,[e.createVNode(le,{ref_key:"processTableRef",ref:x,"selected-keys":e.unref(l),"onUpdate:selectedKeys":V[3]||(V[3]=Q=>e.isRef(l)?l.value=Q:null),"row-key":o.rowKey,"row-selection":e.unref(C),columns:e.unref(D),data:e.unref(m),pagination:{current:e.unref(y).pageNum,pageSize:e.unref(y).pageSize,itemCount:e.unref(f),pageSizeOptions:[15,30,50,100],showTotal:!0,showPageSize:!0,onPageSizeChange:Q=>(e.unref(y).pageSize=Q)&&E(1),onChange:E},onRowClick:S,onSelect:k},null,8,["selected-keys","row-key","row-selection","columns","data","pagination"])])])])])]),_:1},8,["loading"])]),_:1},8,["visible","title"])],64)}}}),Fi=120,C9=e.defineComponent({name:"CallActivity",__name:"CallActivity",setup(o){const t=e.inject(De),n=e.inject(we),a=()=>{const C=t.value,x=n.value.get("modeling");return{element:C,modeling:x}},r=Ae({delay:0,trailing:!0},(C,x)=>{const{element:D,modeling:_}=a();Fe(_,D,D.businessObject,C,x)}),i=Ae({delay:0,trailing:!0},C=>{r("processInstanceName",C)}),s=C=>{r("inheritVariables",C)},l=()=>{var w,b;const C=t.value,x=C.businessObject,D=(w=m.value)==null?void 0:w[0],_=[{cmd:"element.updateModdleProperties",context:{element:C,moddleElement:x,properties:{calledElementType:D?"key":void 0,calledElement:D==null?void 0:D.modelKey,processInstanceName:D==null?void 0:D.name}}}],T=(b=ge(x,"ModelBpmnExtension"))==null?void 0:b[0],E={body:JSON.stringify(m.value)};return T?_.push({cmd:"element.updateModdleProperties",context:{element:C,moddleElement:T,properties:E}}):_.push(...Mt(n.value,C,x,Ve(n.value,"ModelBpmnExtension",E))),Te(n.value,_)},c=e.ref(),u=e.ref(),d=e.ref(),p=e.ref(),m=e.ref([]),f=e.shallowRef(),h=e.shallowRef(),y=()=>{var _,T,E;g();const C=t==null?void 0:t.value,x=C==null?void 0:C.businessObject;if(!x)return;c.value=x.get("processInstanceName"),u.value=x.get("calledElementType"),d.value=x.get("calledElement"),p.value=x.get("inheritVariables");const D=(_=ge(x,"ModelBpmnExtension"))==null?void 0:_[0];D&&(m.value=JSON.parse(D.get("body")||"[]")),(T=f.value)==null||T.initParamsList(),(E=h.value)==null||E.initParamsList()},g=()=>{c.value=d.value=void 0,u.value=p.value=void 0,m.value=[]};return Ie(y),(C,x)=>{const D=be,_=st,T=qe,E=e.resolveComponent("a-switch"),w=e.resolveComponent("a-divider"),b=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(b,{key:"CallActivity"},{header:e.withCtx(()=>[e.createVNode(D,{name:"GitFork"}),e.createTextVNode(e.toDisplayString(C.$t("CallActivity")),1)]),default:e.withCtx(()=>[e.createVNode(T,{"label-width":Fi,label:C.$t("InstanceName")},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:e.unref(c),"onUpdate:modelValue":x[0]||(x[0]=S=>e.isRef(c)?c.value=S:null),placeholder:C.$t("Please enter an instance name"),onInput:e.unref(i)},null,8,["modelValue","placeholder","onInput"])]),_:1},8,["label"]),e.createVNode(T,{"label-width":Fi,label:C.$t("CalledInstance")},{default:e.withCtx(()=>[e.createVNode(w9,{data:e.unref(m),"onUpdate:data":x[1]||(x[1]=S=>e.isRef(m)?m.value=S:null),multiple:!1,onChange:l},null,8,["data"])]),_:1},8,["label"]),e.createVNode(T,{"label-width":Fi,label:C.$t("InheritVariables")},{default:e.withCtx(()=>[e.createVNode(E,{modelValue:e.unref(p),"onUpdate:modelValue":x[2]||(x[2]=S=>e.isRef(p)?p.value=S:null),onChange:s},null,8,["modelValue"])]),_:1},8,["label"]),e.createVNode(w,{margin:"4"}),e.createVNode(dc,{ref_key:"inputRef",ref:f,label:C.$t("InputParams"),type:"In"},null,8,["label"]),e.createVNode(w,{margin:"4"}),e.createVNode(dc,{ref_key:"outputRef",ref:h,label:C.$t("OutputParams"),type:"Out"},null,8,["label"])]),_:1})}}}),_9={class:"script-editor"},N9={class:"script-editor_content"},S9={class:"script-editor_footer"},T9=e.defineComponent({name:"ScriptInput",__name:"ScriptInput",props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1},language:{type:String,default:"javascript"},validator:{type:Function,default:void 0}},emits:["change","update:value"],setup(o,{emit:t}){const n=o,a=t,r=e.ref(n.value),i=e.ref(n.value),s=e.ref(!1),l=()=>{i.value=r.value,s.value=!0},c=()=>{s.value=!1},u=()=>{d(),s.value=!1},d=()=>{const m=s.value?i.value:r.value;a("update:value",m),a("change",m)},p=e.computed(()=>{var m;return n.validator&&typeof n.validator=="function"?n.validator():!!((m=n.value)!=null&&m.length)});return(m,f)=>{const h=e.resolveComponent("MonacoEditor"),y=e.resolveComponent("icon-check-circle-fill"),g=e.resolveComponent("icon-exclamation-circle-fill"),C=e.resolveComponent("a-button"),x=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",_9,[e.createElementVNode("div",{class:"script-editor_header"},[e.createElementVNode("div",{class:"q-monaco-fullscreen",onClick:l})]),e.createElementVNode("div",N9,[e.createVNode(h,{modelValue:e.unref(r),"onUpdate:modelValue":f[0]||(f[0]=D=>e.isRef(r)?r.value=D:null),language:o.language},null,8,["modelValue","language"])]),e.createElementVNode("div",S9,[e.createElementVNode("div",{class:e.normalizeClass(["a-validate__suffix",e.unref(p)?"feedback-success":"feedback-error"])},[e.unref(p)?(e.openBlock(),e.createBlock(y,{key:0,size:"16"})):(e.openBlock(),e.createBlock(g,{key:1,size:"16"}))],2),e.renderSlot(m.$slots,"footer",{},void 0,!0),e.createVNode(C,{type:"primary",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.$t("Submit")),1)]),_:1})])]),e.createVNode(x,{visible:e.unref(s),"onUpdate:visible":f[2]||(f[2]=D=>e.isRef(s)?s.value=D:null),width:"940px",title:"脚本","hide-cancel":!0,"on-cancel":c,"on-before-ok":u},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(r),"onUpdate:modelValue":f[1]||(f[1]=D=>e.isRef(r)?r.value=D:null),language:o.language},null,8,["modelValue","language"])]),_:1},8,["visible"])],64)}}}),k9=kn(T9,[["__scopeId","data-v-e05a3791"]]),x9=e.defineComponent({name:"ScriptTask",__name:"ScriptTask",setup(o){const t=e.inject(De),n=e.inject(we),a=e.ref(80),r={resultVariable:void 0,autoStoreVariables:void 0},i=e.ref(),s=e.ref(),l=e.ref(),c=e.ref(),u=()=>{const C=t.value,x=n.value.get("modeling");return{element:C,modeling:x}},d=Ae({delay:0,trailing:!0},(C,x)=>{const{element:D,modeling:_}=u();Fe(_,D,D.businessObject,C,x)}),p=C=>{d("autoStoreVariables",C)},m=C=>{d("resultVariable",C)},f=C=>{d("script",C)},h=C=>{const{element:x,modeling:D}=u();it(D,x,x.businessObject,{scriptFormat:C,...r})},y=()=>{g();const C=t==null?void 0:t.value,x=C==null?void 0:C.businessObject;x&&(i.value=x.get("scriptFormat"),c.value=x.get("script"),l.value=x.get("resultVariable"),s.value=x.get("autoStoreVariables"))},g=()=>{i.value=s.value=void 0,l.value=c.value=void 0};return Ie(y),(C,x)=>{const D=be,_=e.resolveComponent("a-radio"),T=mo,E=qe,w=e.resolveComponent("a-switch"),b=e.resolveComponent("a-input"),S=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(S,{key:"ScriptTask"},{header:e.withCtx(()=>[e.createVNode(D,{name:"ScrollText"}),e.createTextVNode(e.toDisplayString(C.$t("ScriptTask")),1)]),default:e.withCtx(()=>[e.createVNode(E,{label:C.$t("ScriptFormat"),"label-width":e.unref(a)},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(i),"onUpdate:modelValue":x[0]||(x[0]=k=>e.isRef(i)?i.value=k:null),onChange:h},{default:e.withCtx(()=>[e.createVNode(_,{value:"groovy"},{default:e.withCtx(()=>[e.createTextVNode("groovy")]),_:1}),e.createVNode(_,{value:"JavaScript"},{default:e.withCtx(()=>[e.createTextVNode("JavaScript")]),_:1}),e.createVNode(_,{value:"juel"},{default:e.withCtx(()=>[e.createTextVNode("juel")]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label","label-width"]),e.unref(i)==="groovy"||e.unref(i)==="JavaScript"?(e.openBlock(),e.createBlock(E,{key:0,label:C.$t("KeepResults"),"label-width":e.unref(a)},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:e.unref(s),"onUpdate:modelValue":x[1]||(x[1]=k=>e.isRef(s)?s.value=k:null),onChange:p},null,8,["modelValue"])]),_:1},8,["label","label-width"])):e.createCommentVNode("",!0),e.unref(i)==="juel"?(e.openBlock(),e.createBlock(E,{key:1,"label-width":e.unref(a),label:C.$t("ResultVariable")},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:e.unref(l),"onUpdate:modelValue":x[2]||(x[2]=k=>e.isRef(l)?l.value=k:null),placeholder:C.$t("Please enter a variable name"),clearable:"",onInput:m},null,8,["modelValue","placeholder"])]),_:1},8,["label-width","label"])):e.createCommentVNode("",!0),e.createVNode(E,{"label-width":e.unref(a),label:C.$t("ScriptContent")},{default:e.withCtx(()=>{var k;return[e.createVNode(k9,{value:e.unref(c),"onUpdate:value":x[3]||(x[3]=N=>e.isRef(c)?c.value=N:null),language:((k=e.unref(i))==null?void 0:k.toLocaleLowerCase())||"javascript",onChange:f},null,8,["value","language"])]}),_:1},8,["label-width","label"])]),_:1})}}}),V9={class:"http-params-input"},A9={class:"params-grid-table"},D9={class:"params-grid-item params-grid-header"},R9={class:"params-grid-item params-grid-header"},I9={class:"params-grid-item params-grid-header"},O9={class:"params-grid-item"},$9={class:"params-grid-item"},L9={class:"params-grid-item"},B9={class:"params-grid-empty"},P9={class:"params-grid-footer"},M9=e.defineComponent({name:"HttpParamsInput",__name:"HttpParamsInput",props:{value:{type:String,default:""}},emits:["update:value","change"],setup(o,{emit:t}){const n=o,a=t,{t:r}=Le.useI18n(),i=e.ref(),s=e.ref([]);e.watch(()=>n.value,y=>{if(i.value=y,s.value=[],y){const g=JSON.parse(y);Object.keys(g).forEach(C=>{s.value.push({key:C,value:g[C]})})}},{immediate:!0});const l=e.ref(!1),c=e.ref(),u=()=>{s.value.length,l.value=!0},d=()=>{s.value.push({key:"",value:""})},p=y=>{s.value.splice(y,1),m()},m=y=>{const g={},C=new Set;c.value=void 0;for(const x of s.value){if(!x.key){c.value=r("ParamsKeyCanNotBeEmpty");return}C.add(x.key),g[x.key]=x.value}if(C.size<s.value.length){c.value=r("TheKeyOfTheParamsCannotBeDuplicated");return}y&&y(g)},f=Ae({delay:0,trailing:!0},()=>m()),h=()=>{m(y=>{i.value=JSON.stringify(y),a("update:value",i.value),a("change",i.value),l.value=!1})};return(y,g)=>{const C=e.resolveComponent("a-textarea"),x=be,D=e.resolveComponent("a-button"),_=e.resolveComponent("a-input"),T=e.resolveComponent("a-popconfirm"),E=e.resolveComponent("a-empty"),w=e.resolveComponent("a-alert"),b=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",V9,[e.createVNode(C,{"model-value":e.unref(i),autosize:{minRows:2,maxRows:4},readonly:""},null,8,["model-value"]),e.createVNode(D,{type:"outline",style:{height:"auto"},onClick:u},{default:e.withCtx(()=>[e.createVNode(x,{name:"Plus"})]),_:1})]),e.createVNode(b,{visible:e.unref(l),"onUpdate:visible":g[1]||(g[1]=S=>e.isRef(l)?l.value=S:null),width:540,title:y.$t("SettingParams")},{footer:e.withCtx(()=>[e.createVNode(D,{onClick:g[0]||(g[0]=S=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("Cancel")),1)]),_:1}),e.createVNode(D,{type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("Confirm")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",A9,[e.createElementVNode("div",D9,e.toDisplayString(y.$t("Key")),1),e.createElementVNode("div",R9,e.toDisplayString(y.$t("Value")),1),e.createElementVNode("div",I9,e.toDisplayString(y.$t("Operation")),1),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),(S,k)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:k},[e.createElementVNode("div",O9,[e.createVNode(_,{modelValue:S.key,"onUpdate:modelValue":N=>S.key=N,onInput:e.unref(f)},null,8,["modelValue","onUpdate:modelValue","onInput"])]),e.createElementVNode("div",$9,[e.createVNode(_,{modelValue:S.value,"onUpdate:modelValue":N=>S.value=N},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",L9,[e.createVNode(T,{position:"left",content:y.$t("AreYouSureYouWantToDelete?"),"ok-text":y.$t("Confirm"),"cancel-text":y.$t("Cancel"),onOk:N=>p(k)},{default:e.withCtx(()=>[e.createVNode(D,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])])],64))),128)),e.withDirectives(e.createElementVNode("div",B9,[e.createVNode(E)],512),[[e.vShow,!e.unref(s).length]]),e.createElementVNode("div",P9,[e.createVNode(D,{type:"primary",long:"",onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.$t("Add")),1)]),_:1})])]),e.withDirectives(e.createVNode(w,{type:"error"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)),1)]),_:1},512),[[e.vShow,e.unref(c)]])]),_:1},8,["visible","title"])],64)}}}),Dr=kn(M9,[["__scopeId","data-v-a421cc32"]]),F9=e.defineComponent({name:"MicroServiceTask",__name:"MicroServiceTask",setup(o){const t=e.ref(120),n=e.inject(De),a=e.inject(we),r=e.ref(),i=e.ref(),s=e.ref(),l=e.ref(),c=e.ref(),u=e.ref(),d=e.ref(),p=e.ref(),m=()=>{const b=n.value,S=a.value,k=S.get("modeling");return{element:b,modeling:k,bpmnModeler:S}},f=Ae({delay:0,trailing:!0},(b,S)=>{const{element:k,modeling:N,bpmnModeler:A}=m(),$=ge(k.businessObject,"Field").filter(I=>I.name===b)[0],V=b==="params"?"expression":"string";if($){if(b==="saveResponseParameters"&&S==="false")return it(N,k,$,{[V]:S,responseVariableName:void 0});Fe(N,k,$,V,S)}else Dt(A,k,k.businessObject,Ve(A,"Field",{name:b,[V]:S}))}),h=()=>f("serviceId",r.value),y=()=>f("url",i.value),g=()=>f("method",s.value),C=()=>f("headers",l.value),x=()=>f("params",c.value),D=()=>f("ignoreException",u.value),_=()=>f("saveResponseParameters",d.value),T=Ae({delay:0,trailing:!0},()=>{const b="responseVariableName",S=p.value,{element:k,modeling:N,bpmnModeler:A}=m(),$=ge(k.businessObject,"Field").filter(I=>I.name===b)[0],V="string";if($){if(S==="false")return it(N,k,$,{[V]:S,responseVariableName:void 0});Fe(N,k,$,V,S)}else Dt(A,k,k.businessObject,Ve(A,"Field",{name:b,[V]:S}))}),E=()=>{r.value=i.value=s.value=void 0,c.value=l.value=u.value=void 0,d.value=p.value=void 0};return Ie(()=>{E();const b=n==null?void 0:n.value,S=b==null?void 0:b.businessObject;if(!S)return;const k=ge(S,"Field");for(const N of k)switch(N.name){case"serviceId":r.value=N.get("string");break;case"url":i.value=N.get("string");break;case"method":s.value=N.get("string");break;case"params":c.value=N.get("expression");break;case"headers":l.value=N.get("string");break;case"ignoreException":u.value=N.get("string");break;case"saveResponseParameters":d.value=N.get("string");break;case"responseVariableName":p.value=N.get("string");break}}),(b,S)=>{const k=sn,N=st,A=qe,O=e.resolveComponent("a-radio"),$=mo,V=Dr,I=e.resolveComponent("a-switch"),B=e.resolveComponent("a-input"),Z=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(Z,{key:"ScServiceTask"},{header:e.withCtx(()=>[e.createVNode(k,{name:"sc-service-task",size:16}),e.createTextVNode(" "+e.toDisplayString(b.$t("ScServiceTask")),1)]),default:e.withCtx(()=>[e.createVNode(A,{"label-width":e.unref(t),label:b.$t("AppServiceId"),tooltip:b.$t("For example, the value in {value}",{value:"spring.cloud.nacos.discovery.service"})},{default:e.withCtx(()=>[e.createVNode(N,{modelValue:e.unref(r),"onUpdate:modelValue":S[0]||(S[0]=L=>e.isRef(r)?r.value=L:null),placeholder:b.$t("Please enter a service name"),onInput:h},null,8,["modelValue","placeholder"])]),_:1},8,["label-width","label","tooltip"]),e.createVNode(A,{"label-width":e.unref(t),label:b.$t("Url")},{default:e.withCtx(()=>[e.createVNode(N,{modelValue:e.unref(i),"onUpdate:modelValue":S[1]||(S[1]=L=>e.isRef(i)?i.value=L:null),placeholder:b.$t("Please enter a url"),onInput:y},null,8,["modelValue","placeholder"])]),_:1},8,["label-width","label"]),e.createVNode(A,{"label-width":e.unref(t),label:b.$t("RequestMethod")},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(s),"onUpdate:modelValue":S[2]||(S[2]=L=>e.isRef(s)?s.value=L:null),type:"button",onChange:g},{default:e.withCtx(()=>[e.createVNode(O,{value:"GET"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("Get")),1)]),_:1}),e.createVNode(O,{value:"POST"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("Post")),1)]),_:1}),e.createVNode(O,{value:"PUT"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("Put")),1)]),_:1}),e.createVNode(O,{value:"DELETE"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(b.$t("Delete")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label-width","label"]),e.createVNode(A,{"label-width":e.unref(t),label:b.$t("RequestHeaders")},{default:e.withCtx(()=>[e.createVNode(V,{value:e.unref(l),"onUpdate:value":S[3]||(S[3]=L=>e.isRef(l)?l.value=L:null),onChange:C},null,8,["value"])]),_:1},8,["label-width","label"]),e.createVNode(A,{"label-width":e.unref(t),label:b.$t("ParamsContent")},{default:e.withCtx(()=>[e.createVNode(V,{value:e.unref(c),"onUpdate:value":S[4]||(S[4]=L=>e.isRef(c)?c.value=L:null),onChange:x},null,8,["value"])]),_:1},8,["label-width","label"]),e.createVNode(A,{"label-width":e.unref(t),label:b.$t("SaveResponseParameters")},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(d),"onUpdate:modelValue":S[5]||(S[5]=L=>e.isRef(d)?d.value=L:null),"checked-value":"true","unchecked-value":"false",onChange:_},null,8,["modelValue"])]),_:1},8,["label-width","label"]),e.unref(d)==="true"?(e.openBlock(),e.createBlock(A,{key:0,"label-width":e.unref(t),label:b.$t("ResponseVariableName")},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:e.unref(p),"onUpdate:modelValue":S[6]||(S[6]=L=>e.isRef(p)?p.value=L:null),onInput:e.unref(T)},null,8,["modelValue","onInput"])]),_:1},8,["label-width","label"])):e.createCommentVNode("",!0),e.createVNode(A,{"label-width":e.unref(t),label:b.$t("IgnoreError")},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(u),"onUpdate:modelValue":S[7]||(S[7]=L=>e.isRef(u)?u.value=L:null),"checked-value":"true","unchecked-value":"false",onChange:D},null,8,["modelValue"])]),_:1},8,["label-width","label"])]),_:1})}}});var gd=typeof global=="object"&&global&&global.Object===Object&&global,j9=typeof self=="object"&&self&&self.Object===Object&&self,V0=gd||j9||Function("return this")(),an=V0.Symbol,bd=Object.prototype,q9=bd.hasOwnProperty,U9=bd.toString,Vo=an?an.toStringTag:void 0;function H9(o){var t=q9.call(o,Vo),n=o[Vo];try{o[Vo]=void 0;var a=!0}catch{}var r=U9.call(o);return a&&(t?o[Vo]=n:delete o[Vo]),r}var Z9=Object.prototype,z9=Z9.toString;function G9(o){return z9.call(o)}var K9="[object Null]",W9="[object Undefined]",pc=an?an.toStringTag:void 0;function fo(o){return o==null?o===void 0?W9:K9:pc&&pc in Object(o)?H9(o):G9(o)}function B0(o){return o!=null&&typeof o=="object"}var _n=Array.isArray;function ln(o){var t=typeof o;return o!=null&&(t=="object"||t=="function")}function yd(o){return o}var Y9="[object AsyncFunction]",J9="[object Function]",X9="[object GeneratorFunction]",Q9="[object Proxy]";function Pl(o){if(!ln(o))return!1;var t=fo(o);return t==J9||t==X9||t==Y9||t==Q9}var ji=V0["__core-js_shared__"],mc=function(){var o=/[^.]+$/.exec(ji&&ji.keys&&ji.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();function eg(o){return!!mc&&mc in o}var tg=Function.prototype,ng=tg.toString;function Vn(o){if(o!=null){try{return ng.call(o)}catch{}try{return o+""}catch{}}return""}var og=/[\\^$.*+?()[\]{}|]/g,ag=/^\[object .+?Constructor\]$/,rg=Function.prototype,ig=Object.prototype,sg=rg.toString,lg=ig.hasOwnProperty,cg=RegExp("^"+sg.call(lg).replace(og,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ug(o){if(!ln(o)||eg(o))return!1;var t=Pl(o)?cg:ag;return t.test(Vn(o))}function dg(o,t){return o==null?void 0:o[t]}function An(o,t){var n=dg(o,t);return ug(n)?n:void 0}var _s=An(V0,"WeakMap"),fc=Object.create,pg=function(){function o(){}return function(t){if(!ln(t))return{};if(fc)return fc(t);o.prototype=t;var n=new o;return o.prototype=void 0,n}}();function mg(o,t,n){switch(n.length){case 0:return o.call(t);case 1:return o.call(t,n[0]);case 2:return o.call(t,n[0],n[1]);case 3:return o.call(t,n[0],n[1],n[2])}return o.apply(t,n)}function Ed(o,t){var n=-1,a=o.length;for(t||(t=Array(a));++n<a;)t[n]=o[n];return t}var fg=800,hg=16,vg=Date.now;function gg(o){var t=0,n=0;return function(){var a=vg(),r=hg-(a-n);if(n=a,r>0){if(++t>=fg)return arguments[0]}else t=0;return o.apply(void 0,arguments)}}function bg(o){return function(){return o}}var er=function(){try{var o=An(Object,"defineProperty");return o({},"",{}),o}catch{}}(),yg=er?function(o,t){return er(o,"toString",{configurable:!0,enumerable:!1,value:bg(t),writable:!0})}:yd,Eg=gg(yg);function wg(o,t){for(var n=-1,a=o==null?0:o.length;++n<a&&t(o[n],n,o)!==!1;);return o}var Cg=9007199254740991,_g=/^(?:0|[1-9]\d*)$/;function wd(o,t){var n=typeof o;return t=t??Cg,!!t&&(n=="number"||n!="symbol"&&_g.test(o))&&o>-1&&o%1==0&&o<t}function Ml(o,t,n){t=="__proto__"&&er?er(o,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):o[t]=n}function ta(o,t){return o===t||o!==o&&t!==t}var Ng=Object.prototype,Sg=Ng.hasOwnProperty;function Cd(o,t,n){var a=o[t];(!(Sg.call(o,t)&&ta(a,n))||n===void 0&&!(t in o))&&Ml(o,t,n)}function na(o,t,n,a){var r=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var l=t[i],c=void 0;c===void 0&&(c=o[l]),r?Ml(n,l,c):Cd(n,l,c)}return n}var hc=Math.max;function Tg(o,t,n){return t=hc(t===void 0?o.length-1:t,0),function(){for(var a=arguments,r=-1,i=hc(a.length-t,0),s=Array(i);++r<i;)s[r]=a[t+r];r=-1;for(var l=Array(t+1);++r<t;)l[r]=a[r];return l[t]=n(s),mg(o,this,l)}}function kg(o,t){return Eg(Tg(o,t,yd),o+"")}var xg=9007199254740991;function _d(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=xg}function Rr(o){return o!=null&&_d(o.length)&&!Pl(o)}function Vg(o,t,n){if(!ln(n))return!1;var a=typeof t;return(a=="number"?Rr(n)&&wd(t,n.length):a=="string"&&t in n)?ta(n[t],o):!1}function Ag(o){return kg(function(t,n){var a=-1,r=n.length,i=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(i=o.length>3&&typeof i=="function"?(r--,i):void 0,s&&Vg(n[0],n[1],s)&&(i=r<3?void 0:i,r=1),t=Object(t);++a<r;){var l=n[a];l&&o(t,l,a,i)}return t})}var Dg=Object.prototype;function Fl(o){var t=o&&o.constructor,n=typeof t=="function"&&t.prototype||Dg;return o===n}function Rg(o,t){for(var n=-1,a=Array(o);++n<o;)a[n]=t(n);return a}var Ig="[object Arguments]";function vc(o){return B0(o)&&fo(o)==Ig}var Nd=Object.prototype,Og=Nd.hasOwnProperty,$g=Nd.propertyIsEnumerable,Ns=vc(function(){return arguments}())?vc:function(o){return B0(o)&&Og.call(o,"callee")&&!$g.call(o,"callee")};function Lg(){return!1}var Sd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gc=Sd&&typeof module=="object"&&module&&!module.nodeType&&module,Bg=gc&&gc.exports===Sd,bc=Bg?V0.Buffer:void 0,Pg=bc?bc.isBuffer:void 0,Mo=Pg||Lg,Mg="[object Arguments]",Fg="[object Array]",jg="[object Boolean]",qg="[object Date]",Ug="[object Error]",Hg="[object Function]",Zg="[object Map]",zg="[object Number]",Gg="[object Object]",Kg="[object RegExp]",Wg="[object Set]",Yg="[object String]",Jg="[object WeakMap]",Xg="[object ArrayBuffer]",Qg="[object DataView]",eb="[object Float32Array]",tb="[object Float64Array]",nb="[object Int8Array]",ob="[object Int16Array]",ab="[object Int32Array]",rb="[object Uint8Array]",ib="[object Uint8ClampedArray]",sb="[object Uint16Array]",lb="[object Uint32Array]",ze={};ze[eb]=ze[tb]=ze[nb]=ze[ob]=ze[ab]=ze[rb]=ze[ib]=ze[sb]=ze[lb]=!0;ze[Mg]=ze[Fg]=ze[Xg]=ze[jg]=ze[Qg]=ze[qg]=ze[Ug]=ze[Hg]=ze[Zg]=ze[zg]=ze[Gg]=ze[Kg]=ze[Wg]=ze[Yg]=ze[Jg]=!1;function cb(o){return B0(o)&&_d(o.length)&&!!ze[fo(o)]}function jl(o){return function(t){return o(t)}}var Td=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Io=Td&&typeof module=="object"&&module&&!module.nodeType&&module,ub=Io&&Io.exports===Td,qi=ub&&gd.process,no=function(){try{var o=Io&&Io.require&&Io.require("util").types;return o||qi&&qi.binding&&qi.binding("util")}catch{}}(),yc=no&&no.isTypedArray,ql=yc?jl(yc):cb,db=Object.prototype,pb=db.hasOwnProperty;function kd(o,t){var n=_n(o),a=!n&&Ns(o),r=!n&&!a&&Mo(o),i=!n&&!a&&!r&&ql(o),s=n||a||r||i,l=s?Rg(o.length,String):[],c=l.length;for(var u in o)(t||pb.call(o,u))&&!(s&&(u=="length"||r&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||wd(u,c)))&&l.push(u);return l}function xd(o,t){return function(n){return o(t(n))}}var mb=xd(Object.keys,Object),fb=Object.prototype,hb=fb.hasOwnProperty;function vb(o){if(!Fl(o))return mb(o);var t=[];for(var n in Object(o))hb.call(o,n)&&n!="constructor"&&t.push(n);return t}function Ul(o){return Rr(o)?kd(o):vb(o)}function gb(o){var t=[];if(o!=null)for(var n in Object(o))t.push(n);return t}var bb=Object.prototype,yb=bb.hasOwnProperty;function Eb(o){if(!ln(o))return gb(o);var t=Fl(o),n=[];for(var a in o)a=="constructor"&&(t||!yb.call(o,a))||n.push(a);return n}function oa(o){return Rr(o)?kd(o,!0):Eb(o)}var Fo=An(Object,"create");function wb(){this.__data__=Fo?Fo(null):{},this.size=0}function Cb(o){var t=this.has(o)&&delete this.__data__[o];return this.size-=t?1:0,t}var _b="__lodash_hash_undefined__",Nb=Object.prototype,Sb=Nb.hasOwnProperty;function Tb(o){var t=this.__data__;if(Fo){var n=t[o];return n===_b?void 0:n}return Sb.call(t,o)?t[o]:void 0}var kb=Object.prototype,xb=kb.hasOwnProperty;function Vb(o){var t=this.__data__;return Fo?t[o]!==void 0:xb.call(t,o)}var Ab="__lodash_hash_undefined__";function Db(o,t){var n=this.__data__;return this.size+=this.has(o)?0:1,n[o]=Fo&&t===void 0?Ab:t,this}function Nn(o){var t=-1,n=o==null?0:o.length;for(this.clear();++t<n;){var a=o[t];this.set(a[0],a[1])}}Nn.prototype.clear=wb;Nn.prototype.delete=Cb;Nn.prototype.get=Tb;Nn.prototype.has=Vb;Nn.prototype.set=Db;function Rb(){this.__data__=[],this.size=0}function Ir(o,t){for(var n=o.length;n--;)if(ta(o[n][0],t))return n;return-1}var Ib=Array.prototype,Ob=Ib.splice;function $b(o){var t=this.__data__,n=Ir(t,o);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():Ob.call(t,n,1),--this.size,!0}function Lb(o){var t=this.__data__,n=Ir(t,o);return n<0?void 0:t[n][1]}function Bb(o){return Ir(this.__data__,o)>-1}function Pb(o,t){var n=this.__data__,a=Ir(n,o);return a<0?(++this.size,n.push([o,t])):n[a][1]=t,this}function q0(o){var t=-1,n=o==null?0:o.length;for(this.clear();++t<n;){var a=o[t];this.set(a[0],a[1])}}q0.prototype.clear=Rb;q0.prototype.delete=$b;q0.prototype.get=Lb;q0.prototype.has=Bb;q0.prototype.set=Pb;var jo=An(V0,"Map");function Mb(){this.size=0,this.__data__={hash:new Nn,map:new(jo||q0),string:new Nn}}function Fb(o){var t=typeof o;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?o!=="__proto__":o===null}function Or(o,t){var n=o.__data__;return Fb(t)?n[typeof t=="string"?"string":"hash"]:n.map}function jb(o){var t=Or(this,o).delete(o);return this.size-=t?1:0,t}function qb(o){return Or(this,o).get(o)}function Ub(o){return Or(this,o).has(o)}function Hb(o,t){var n=Or(this,o),a=n.size;return n.set(o,t),this.size+=n.size==a?0:1,this}function Dn(o){var t=-1,n=o==null?0:o.length;for(this.clear();++t<n;){var a=o[t];this.set(a[0],a[1])}}Dn.prototype.clear=Mb;Dn.prototype.delete=jb;Dn.prototype.get=qb;Dn.prototype.has=Ub;Dn.prototype.set=Hb;function Vd(o,t){for(var n=-1,a=t.length,r=o.length;++n<a;)o[r+n]=t[n];return o}var Hl=xd(Object.getPrototypeOf,Object),Zb="[object Object]",zb=Function.prototype,Gb=Object.prototype,Ad=zb.toString,Kb=Gb.hasOwnProperty,Wb=Ad.call(Object);function Yb(o){if(!B0(o)||fo(o)!=Zb)return!1;var t=Hl(o);if(t===null)return!0;var n=Kb.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ad.call(n)==Wb}function Jb(){this.__data__=new q0,this.size=0}function Xb(o){var t=this.__data__,n=t.delete(o);return this.size=t.size,n}function Qb(o){return this.__data__.get(o)}function ey(o){return this.__data__.has(o)}var ty=200;function ny(o,t){var n=this.__data__;if(n instanceof q0){var a=n.__data__;if(!jo||a.length<ty-1)return a.push([o,t]),this.size=++n.size,this;n=this.__data__=new Dn(a)}return n.set(o,t),this.size=n.size,this}function _0(o){var t=this.__data__=new q0(o);this.size=t.size}_0.prototype.clear=Jb;_0.prototype.delete=Xb;_0.prototype.get=Qb;_0.prototype.has=ey;_0.prototype.set=ny;function oy(o,t){return o&&na(t,Ul(t),o)}function ay(o,t){return o&&na(t,oa(t),o)}var Dd=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ec=Dd&&typeof module=="object"&&module&&!module.nodeType&&module,ry=Ec&&Ec.exports===Dd,wc=ry?V0.Buffer:void 0,Cc=wc?wc.allocUnsafe:void 0;function Rd(o,t){if(t)return o.slice();var n=o.length,a=Cc?Cc(n):new o.constructor(n);return o.copy(a),a}function iy(o,t){for(var n=-1,a=o==null?0:o.length,r=0,i=[];++n<a;){var s=o[n];t(s,n,o)&&(i[r++]=s)}return i}function Id(){return[]}var sy=Object.prototype,ly=sy.propertyIsEnumerable,_c=Object.getOwnPropertySymbols,Zl=_c?function(o){return o==null?[]:(o=Object(o),iy(_c(o),function(t){return ly.call(o,t)}))}:Id;function cy(o,t){return na(o,Zl(o),t)}var uy=Object.getOwnPropertySymbols,Od=uy?function(o){for(var t=[];o;)Vd(t,Zl(o)),o=Hl(o);return t}:Id;function dy(o,t){return na(o,Od(o),t)}function $d(o,t,n){var a=t(o);return _n(o)?a:Vd(a,n(o))}function Ss(o){return $d(o,Ul,Zl)}function py(o){return $d(o,oa,Od)}var Ts=An(V0,"DataView"),ks=An(V0,"Promise"),xs=An(V0,"Set"),Nc="[object Map]",my="[object Object]",Sc="[object Promise]",Tc="[object Set]",kc="[object WeakMap]",xc="[object DataView]",fy=Vn(Ts),hy=Vn(jo),vy=Vn(ks),gy=Vn(xs),by=Vn(_s),l0=fo;(Ts&&l0(new Ts(new ArrayBuffer(1)))!=xc||jo&&l0(new jo)!=Nc||ks&&l0(ks.resolve())!=Sc||xs&&l0(new xs)!=Tc||_s&&l0(new _s)!=kc)&&(l0=function(o){var t=fo(o),n=t==my?o.constructor:void 0,a=n?Vn(n):"";if(a)switch(a){case fy:return xc;case hy:return Nc;case vy:return Sc;case gy:return Tc;case by:return kc}return t});var yy=Object.prototype,Ey=yy.hasOwnProperty;function wy(o){var t=o.length,n=new o.constructor(t);return t&&typeof o[0]=="string"&&Ey.call(o,"index")&&(n.index=o.index,n.input=o.input),n}var tr=V0.Uint8Array;function zl(o){var t=new o.constructor(o.byteLength);return new tr(t).set(new tr(o)),t}function Cy(o,t){var n=t?zl(o.buffer):o.buffer;return new o.constructor(n,o.byteOffset,o.byteLength)}var _y=/\w*$/;function Ny(o){var t=new o.constructor(o.source,_y.exec(o));return t.lastIndex=o.lastIndex,t}var Vc=an?an.prototype:void 0,Ac=Vc?Vc.valueOf:void 0;function Sy(o){return Ac?Object(Ac.call(o)):{}}function Ld(o,t){var n=t?zl(o.buffer):o.buffer;return new o.constructor(n,o.byteOffset,o.length)}var Ty="[object Boolean]",ky="[object Date]",xy="[object Map]",Vy="[object Number]",Ay="[object RegExp]",Dy="[object Set]",Ry="[object String]",Iy="[object Symbol]",Oy="[object ArrayBuffer]",$y="[object DataView]",Ly="[object Float32Array]",By="[object Float64Array]",Py="[object Int8Array]",My="[object Int16Array]",Fy="[object Int32Array]",jy="[object Uint8Array]",qy="[object Uint8ClampedArray]",Uy="[object Uint16Array]",Hy="[object Uint32Array]";function Zy(o,t,n){var a=o.constructor;switch(t){case Oy:return zl(o);case Ty:case ky:return new a(+o);case $y:return Cy(o,n);case Ly:case By:case Py:case My:case Fy:case jy:case qy:case Uy:case Hy:return Ld(o,n);case xy:return new a;case Vy:case Ry:return new a(o);case Ay:return Ny(o);case Dy:return new a;case Iy:return Sy(o)}}function Bd(o){return typeof o.constructor=="function"&&!Fl(o)?pg(Hl(o)):{}}var zy="[object Map]";function Gy(o){return B0(o)&&l0(o)==zy}var Dc=no&&no.isMap,Ky=Dc?jl(Dc):Gy,Wy="[object Set]";function Yy(o){return B0(o)&&l0(o)==Wy}var Rc=no&&no.isSet,Jy=Rc?jl(Rc):Yy,Xy=1,Qy=2,eE=4,Pd="[object Arguments]",tE="[object Array]",nE="[object Boolean]",oE="[object Date]",aE="[object Error]",Md="[object Function]",rE="[object GeneratorFunction]",iE="[object Map]",sE="[object Number]",Fd="[object Object]",lE="[object RegExp]",cE="[object Set]",uE="[object String]",dE="[object Symbol]",pE="[object WeakMap]",mE="[object ArrayBuffer]",fE="[object DataView]",hE="[object Float32Array]",vE="[object Float64Array]",gE="[object Int8Array]",bE="[object Int16Array]",yE="[object Int32Array]",EE="[object Uint8Array]",wE="[object Uint8ClampedArray]",CE="[object Uint16Array]",_E="[object Uint32Array]",He={};He[Pd]=He[tE]=He[mE]=He[fE]=He[nE]=He[oE]=He[hE]=He[vE]=He[gE]=He[bE]=He[yE]=He[iE]=He[sE]=He[Fd]=He[lE]=He[cE]=He[uE]=He[dE]=He[EE]=He[wE]=He[CE]=He[_E]=!0;He[aE]=He[Md]=He[pE]=!1;function Ua(o,t,n,a,r,i){var s,l=t&Xy,c=t&Qy,u=t&eE;if(s!==void 0)return s;if(!ln(o))return o;var d=_n(o);if(d){if(s=wy(o),!l)return Ed(o,s)}else{var p=l0(o),m=p==Md||p==rE;if(Mo(o))return Rd(o,l);if(p==Fd||p==Pd||m&&!r){if(s=c||m?{}:Bd(o),!l)return c?dy(o,ay(s,o)):cy(o,oy(s,o))}else{if(!He[p])return r?o:{};s=Zy(o,p,l)}}i||(i=new _0);var f=i.get(o);if(f)return f;i.set(o,s),Jy(o)?o.forEach(function(g){s.add(Ua(g,t,n,g,o,i))}):Ky(o)&&o.forEach(function(g,C){s.set(C,Ua(g,t,n,C,o,i))});var h=u?c?py:Ss:c?oa:Ul,y=d?void 0:h(o);return wg(y||o,function(g,C){y&&(C=g,g=o[C]),Cd(s,C,Ua(g,t,n,C,o,i))}),s}var NE=1,SE=4;function Xn(o){return Ua(o,NE|SE)}var TE="__lodash_hash_undefined__";function kE(o){return this.__data__.set(o,TE),this}function xE(o){return this.__data__.has(o)}function nr(o){var t=-1,n=o==null?0:o.length;for(this.__data__=new Dn;++t<n;)this.add(o[t])}nr.prototype.add=nr.prototype.push=kE;nr.prototype.has=xE;function VE(o,t){for(var n=-1,a=o==null?0:o.length;++n<a;)if(t(o[n],n,o))return!0;return!1}function AE(o,t){return o.has(t)}var DE=1,RE=2;function jd(o,t,n,a,r,i){var s=n&DE,l=o.length,c=t.length;if(l!=c&&!(s&&c>l))return!1;var u=i.get(o),d=i.get(t);if(u&&d)return u==t&&d==o;var p=-1,m=!0,f=n&RE?new nr:void 0;for(i.set(o,t),i.set(t,o);++p<l;){var h=o[p],y=t[p];if(a)var g=s?a(y,h,p,t,o,i):a(h,y,p,o,t,i);if(g!==void 0){if(g)continue;m=!1;break}if(f){if(!VE(t,function(C,x){if(!AE(f,x)&&(h===C||r(h,C,n,a,i)))return f.push(x)})){m=!1;break}}else if(!(h===y||r(h,y,n,a,i))){m=!1;break}}return i.delete(o),i.delete(t),m}function IE(o){var t=-1,n=Array(o.size);return o.forEach(function(a,r){n[++t]=[r,a]}),n}function OE(o){var t=-1,n=Array(o.size);return o.forEach(function(a){n[++t]=a}),n}var $E=1,LE=2,BE="[object Boolean]",PE="[object Date]",ME="[object Error]",FE="[object Map]",jE="[object Number]",qE="[object RegExp]",UE="[object Set]",HE="[object String]",ZE="[object Symbol]",zE="[object ArrayBuffer]",GE="[object DataView]",Ic=an?an.prototype:void 0,Ui=Ic?Ic.valueOf:void 0;function KE(o,t,n,a,r,i,s){switch(n){case GE:if(o.byteLength!=t.byteLength||o.byteOffset!=t.byteOffset)return!1;o=o.buffer,t=t.buffer;case zE:return!(o.byteLength!=t.byteLength||!i(new tr(o),new tr(t)));case BE:case PE:case jE:return ta(+o,+t);case ME:return o.name==t.name&&o.message==t.message;case qE:case HE:return o==t+"";case FE:var l=IE;case UE:var c=a&$E;if(l||(l=OE),o.size!=t.size&&!c)return!1;var u=s.get(o);if(u)return u==t;a|=LE,s.set(o,t);var d=jd(l(o),l(t),a,r,i,s);return s.delete(o),d;case ZE:if(Ui)return Ui.call(o)==Ui.call(t)}return!1}var WE=1,YE=Object.prototype,JE=YE.hasOwnProperty;function XE(o,t,n,a,r,i){var s=n&WE,l=Ss(o),c=l.length,u=Ss(t),d=u.length;if(c!=d&&!s)return!1;for(var p=c;p--;){var m=l[p];if(!(s?m in t:JE.call(t,m)))return!1}var f=i.get(o),h=i.get(t);if(f&&h)return f==t&&h==o;var y=!0;i.set(o,t),i.set(t,o);for(var g=s;++p<c;){m=l[p];var C=o[m],x=t[m];if(a)var D=s?a(x,C,m,t,o,i):a(C,x,m,o,t,i);if(!(D===void 0?C===x||r(C,x,n,a,i):D)){y=!1;break}g||(g=m=="constructor")}if(y&&!g){var _=o.constructor,T=t.constructor;_!=T&&"constructor"in o&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof T=="function"&&T instanceof T)&&(y=!1)}return i.delete(o),i.delete(t),y}var QE=1,Oc="[object Arguments]",$c="[object Array]",Da="[object Object]",ew=Object.prototype,Lc=ew.hasOwnProperty;function tw(o,t,n,a,r,i){var s=_n(o),l=_n(t),c=s?$c:l0(o),u=l?$c:l0(t);c=c==Oc?Da:c,u=u==Oc?Da:u;var d=c==Da,p=u==Da,m=c==u;if(m&&Mo(o)){if(!Mo(t))return!1;s=!0,d=!1}if(m&&!d)return i||(i=new _0),s||ql(o)?jd(o,t,n,a,r,i):KE(o,t,c,n,a,r,i);if(!(n&QE)){var f=d&&Lc.call(o,"__wrapped__"),h=p&&Lc.call(t,"__wrapped__");if(f||h){var y=f?o.value():o,g=h?t.value():t;return i||(i=new _0),r(y,g,n,a,i)}}return m?(i||(i=new _0),XE(o,t,n,a,r,i)):!1}function qd(o,t,n,a,r){return o===t?!0:o==null||t==null||!B0(o)&&!B0(t)?o!==o&&t!==t:tw(o,t,n,a,qd,r)}function nw(o){return function(t,n,a){for(var r=-1,i=Object(t),s=a(t),l=s.length;l--;){var c=s[++r];if(n(i[c],c,i)===!1)break}return t}}var ow=nw();function Vs(o,t,n){(n!==void 0&&!ta(o[t],n)||n===void 0&&!(t in o))&&Ml(o,t,n)}function aw(o){return B0(o)&&Rr(o)}function As(o,t){if(!(t==="constructor"&&typeof o[t]=="function")&&t!="__proto__")return o[t]}function rw(o){return na(o,oa(o))}function iw(o,t,n,a,r,i,s){var l=As(o,n),c=As(t,n),u=s.get(c);if(u){Vs(o,n,u);return}var d=i?i(l,c,n+"",o,t,s):void 0,p=d===void 0;if(p){var m=_n(c),f=!m&&Mo(c),h=!m&&!f&&ql(c);d=c,m||f||h?_n(l)?d=l:aw(l)?d=Ed(l):f?(p=!1,d=Rd(c,!0)):h?(p=!1,d=Ld(c,!0)):d=[]:Yb(c)||Ns(c)?(d=l,Ns(l)?d=rw(l):(!ln(l)||Pl(l))&&(d=Bd(c))):p=!1}p&&(s.set(c,d),r(d,c,a,i,s),s.delete(c)),Vs(o,n,d)}function Ud(o,t,n,a,r){o!==t&&ow(t,function(i,s){if(r||(r=new _0),ln(i))iw(o,t,s,n,Ud,a,r);else{var l=a?a(As(o,s),i,s+"",o,t,r):void 0;l===void 0&&(l=i),Vs(o,s,l)}},oa)}function Gl(o,t){return qd(o,t)}var tn=Ag(function(o,t,n){Ud(o,t,n)}),fe=(o=>(o[o.TYPE=3]="TYPE",o[o.LEVEL=12]="LEVEL",o[o.ATTRIBUTE=13]="ATTRIBUTE",o[o.BLOT=14]="BLOT",o[o.INLINE=7]="INLINE",o[o.BLOCK=11]="BLOCK",o[o.BLOCK_BLOT=10]="BLOCK_BLOT",o[o.INLINE_BLOT=6]="INLINE_BLOT",o[o.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",o[o.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",o[o.ANY=15]="ANY",o))(fe||{});class k0{constructor(t,n,a={}){this.attrName=t,this.keyName=n;const r=fe.TYPE&fe.ATTRIBUTE;this.scope=a.scope!=null?a.scope&fe.LEVEL|r:fe.ATTRIBUTE,a.whitelist!=null&&(this.whitelist=a.whitelist)}static keys(t){return Array.from(t.attributes).map(n=>n.name)}add(t,n){return this.canAdd(t,n)?(t.setAttribute(this.keyName,n),!0):!1}canAdd(t,n){return this.whitelist==null?!0:typeof n=="string"?this.whitelist.indexOf(n.replace(/["']/g,""))>-1:this.whitelist.indexOf(n)>-1}remove(t){t.removeAttribute(this.keyName)}value(t){const n=t.getAttribute(this.keyName);return this.canAdd(t,n)&&n?n:""}}class Qn extends Error{constructor(t){t="[Parchment] "+t,super(t),this.message=t,this.name=this.constructor.name}}const Hd=class Ds{constructor(){this.attributes={},this.classes={},this.tags={},this.types={}}static find(t,n=!1){if(t==null)return null;if(this.blots.has(t))return this.blots.get(t)||null;if(n){let a=null;try{a=t.parentNode}catch{return null}return this.find(a,n)}return null}create(t,n,a){const r=this.query(n);if(r==null)throw new Qn(`Unable to create ${n} blot`);const i=r,s=n instanceof Node||n.nodeType===Node.TEXT_NODE?n:i.create(a),l=new i(t,s,a);return Ds.blots.set(l.domNode,l),l}find(t,n=!1){return Ds.find(t,n)}query(t,n=fe.ANY){let a;return typeof t=="string"?a=this.types[t]||this.attributes[t]:t instanceof Text||t.nodeType===Node.TEXT_NODE?a=this.types.text:typeof t=="number"?t&fe.LEVEL&fe.BLOCK?a=this.types.block:t&fe.LEVEL&fe.INLINE&&(a=this.types.inline):t instanceof Element&&((t.getAttribute("class")||"").split(/\s+/).some(r=>(a=this.classes[r],!!a)),a=a||this.tags[t.tagName]),a==null?null:"scope"in a&&n&fe.LEVEL&a.scope&&n&fe.TYPE&a.scope?a:null}register(...t){return t.map(n=>{const a="blotName"in n,r="attrName"in n;if(!a&&!r)throw new Qn("Invalid definition");if(a&&n.blotName==="abstract")throw new Qn("Cannot register abstract class");const i=a?n.blotName:r?n.attrName:void 0;return this.types[i]=n,r?typeof n.keyName=="string"&&(this.attributes[n.keyName]=n):a&&(n.className&&(this.classes[n.className]=n),n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map(s=>s.toUpperCase()):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach(s=>{(this.tags[s]==null||n.className==null)&&(this.tags[s]=n)}))),n})}};Hd.blots=new WeakMap;let oo=Hd;function Bc(o,t){return(o.getAttribute("class")||"").split(/\s+/).filter(n=>n.indexOf(`${t}-`)===0)}class sw extends k0{static keys(t){return(t.getAttribute("class")||"").split(/\s+/).map(n=>n.split("-").slice(0,-1).join("-"))}add(t,n){return this.canAdd(t,n)?(this.remove(t),t.classList.add(`${this.keyName}-${n}`),!0):!1}remove(t){Bc(t,this.keyName).forEach(n=>{t.classList.remove(n)}),t.classList.length===0&&t.removeAttribute("class")}value(t){const n=(Bc(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,n)?n:""}}const h0=sw;function Hi(o){const t=o.split("-"),n=t.slice(1).map(a=>a[0].toUpperCase()+a.slice(1)).join("");return t[0]+n}class lw extends k0{static keys(t){return(t.getAttribute("style")||"").split(";").map(n=>n.split(":")[0].trim())}add(t,n){return this.canAdd(t,n)?(t.style[Hi(this.keyName)]=n,!0):!1}remove(t){t.style[Hi(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")}value(t){const n=t.style[Hi(this.keyName)];return this.canAdd(t,n)?n:""}}const cn=lw;class cw{constructor(t){this.attributes={},this.domNode=t,this.build()}attribute(t,n){n?t.add(this.domNode,n)&&(t.value(this.domNode)!=null?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])}build(){this.attributes={};const t=oo.find(this.domNode);if(t==null)return;const n=k0.keys(this.domNode),a=h0.keys(this.domNode),r=cn.keys(this.domNode);n.concat(a).concat(r).forEach(i=>{const s=t.scroll.query(i,fe.ATTRIBUTE);s instanceof k0&&(this.attributes[s.attrName]=s)})}copy(t){Object.keys(this.attributes).forEach(n=>{const a=this.attributes[n].value(this.domNode);t.format(n,a)})}move(t){this.copy(t),Object.keys(this.attributes).forEach(n=>{this.attributes[n].remove(this.domNode)}),this.attributes={}}values(){return Object.keys(this.attributes).reduce((t,n)=>(t[n]=this.attributes[n].value(this.domNode),t),{})}}const $r=cw,Zd=class{constructor(t,n){this.scroll=t,this.domNode=n,oo.blots.set(n,this),this.prev=null,this.next=null}static create(t){if(this.tagName==null)throw new Qn("Blot definition missing tagName");let n,a;return Array.isArray(this.tagName)?(typeof t=="string"?(a=t.toUpperCase(),parseInt(a,10).toString()===a&&(a=parseInt(a,10))):typeof t=="number"&&(a=t),typeof a=="number"?n=document.createElement(this.tagName[a-1]):a&&this.tagName.indexOf(a)>-1?n=document.createElement(a):n=document.createElement(this.tagName[0])):n=document.createElement(this.tagName),this.className&&n.classList.add(this.className),n}get statics(){return this.constructor}attach(){}clone(){const t=this.domNode.cloneNode(!1);return this.scroll.create(t)}detach(){this.parent!=null&&this.parent.removeChild(this),oo.blots.delete(this.domNode)}deleteAt(t,n){this.isolate(t,n).remove()}formatAt(t,n,a,r){const i=this.isolate(t,n);if(this.scroll.query(a,fe.BLOT)!=null&&r)i.wrap(a,r);else if(this.scroll.query(a,fe.ATTRIBUTE)!=null){const s=this.scroll.create(this.statics.scope);i.wrap(s),s.format(a,r)}}insertAt(t,n,a){const r=a==null?this.scroll.create("text",n):this.scroll.create(n,a),i=this.split(t);this.parent.insertBefore(r,i||void 0)}isolate(t,n){const a=this.split(t);if(a==null)throw new Error("Attempt to isolate at end");return a.split(n),a}length(){return 1}offset(t=this.parent){return this.parent==null||this===t?0:this.parent.children.offset(this)+this.parent.offset(t)}optimize(t){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)}remove(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()}replaceWith(t,n){const a=typeof t=="string"?this.scroll.create(t,n):t;return this.parent!=null&&(this.parent.insertBefore(a,this.next||void 0),this.remove()),a}split(t,n){return t===0?this:this.next}update(t,n){}wrap(t,n){const a=typeof t=="string"?this.scroll.create(t,n):t;if(this.parent!=null&&this.parent.insertBefore(a,this.next||void 0),typeof a.appendChild!="function")throw new Qn(`Cannot wrap ${t}`);return a.appendChild(this),a}};Zd.blotName="abstract";let zd=Zd;const Gd=class extends zd{static value(t){return!0}index(t,n){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(n,1):-1}position(t,n){let a=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return t>0&&(a+=1),[this.parent.domNode,a]}value(){return{[this.statics.blotName]:this.statics.value(this.domNode)||!0}}};Gd.scope=fe.INLINE_BLOT;let uw=Gd;const _t=uw;class dw{constructor(){this.head=null,this.tail=null,this.length=0}append(...t){if(this.insertBefore(t[0],null),t.length>1){const n=t.slice(1);this.append(...n)}}at(t){const n=this.iterator();let a=n();for(;a&&t>0;)t-=1,a=n();return a}contains(t){const n=this.iterator();let a=n();for(;a;){if(a===t)return!0;a=n()}return!1}indexOf(t){const n=this.iterator();let a=n(),r=0;for(;a;){if(a===t)return r;r+=1,a=n()}return-1}insertBefore(t,n){t!=null&&(this.remove(t),t.next=n,n!=null?(t.prev=n.prev,n.prev!=null&&(n.prev.next=t),n.prev=t,n===this.head&&(this.head=t)):this.tail!=null?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)}offset(t){let n=0,a=this.head;for(;a!=null;){if(a===t)return n;n+=a.length(),a=a.next}return-1}remove(t){this.contains(t)&&(t.prev!=null&&(t.prev.next=t.next),t.next!=null&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)}iterator(t=this.head){return()=>{const n=t;return t!=null&&(t=t.next),n}}find(t,n=!1){const a=this.iterator();let r=a();for(;r;){const i=r.length();if(t<i||n&&t===i&&(r.next==null||r.next.length()!==0))return[r,t];t-=i,r=a()}return[null,0]}forEach(t){const n=this.iterator();let a=n();for(;a;)t(a),a=n()}forEachAt(t,n,a){if(n<=0)return;const[r,i]=this.find(t);let s=t-i;const l=this.iterator(r);let c=l();for(;c&&s<t+n;){const u=c.length();t>s?a(c,t-s,Math.min(n,s+u-t)):a(c,0,Math.min(u,t+n-s)),s+=u,c=l()}}map(t){return this.reduce((n,a)=>(n.push(t(a)),n),[])}reduce(t,n){const a=this.iterator();let r=a();for(;r;)n=t(n,r),r=a();return n}}function Pc(o,t){const n=t.find(o);if(n)return n;try{return t.create(o)}catch{const a=t.create(fe.INLINE);return Array.from(o.childNodes).forEach(r=>{a.domNode.appendChild(r)}),o.parentNode&&o.parentNode.replaceChild(a.domNode,o),a.attach(),a}}const Kd=class Y0 extends zd{constructor(t,n){super(t,n),this.uiNode=null,this.build()}appendChild(t){this.insertBefore(t)}attach(){super.attach(),this.children.forEach(t=>{t.attach()})}attachUI(t){this.uiNode!=null&&this.uiNode.remove(),this.uiNode=t,Y0.uiClass&&this.uiNode.classList.add(Y0.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)}build(){this.children=new dw,Array.from(this.domNode.childNodes).filter(t=>t!==this.uiNode).reverse().forEach(t=>{try{const n=Pc(t,this.scroll);this.insertBefore(n,this.children.head||void 0)}catch(n){if(n instanceof Qn)return;throw n}})}deleteAt(t,n){if(t===0&&n===this.length())return this.remove();this.children.forEachAt(t,n,(a,r,i)=>{a.deleteAt(r,i)})}descendant(t,n=0){const[a,r]=this.children.find(n);return t.blotName==null&&t(a)||t.blotName!=null&&a instanceof t?[a,r]:a instanceof Y0?a.descendant(t,r):[null,-1]}descendants(t,n=0,a=Number.MAX_VALUE){let r=[],i=a;return this.children.forEachAt(n,a,(s,l,c)=>{(t.blotName==null&&t(s)||t.blotName!=null&&s instanceof t)&&r.push(s),s instanceof Y0&&(r=r.concat(s.descendants(t,l,i))),i-=c}),r}detach(){this.children.forEach(t=>{t.detach()}),super.detach()}enforceAllowedChildren(){let t=!1;this.children.forEach(n=>{t||this.statics.allowedChildren.some(a=>n instanceof a)||(n.statics.scope===fe.BLOCK_BLOT?(n.next!=null&&this.splitAfter(n),n.prev!=null&&this.splitAfter(n.prev),n.parent.unwrap(),t=!0):n instanceof Y0?n.unwrap():n.remove())})}formatAt(t,n,a,r){this.children.forEachAt(t,n,(i,s,l)=>{i.formatAt(s,l,a,r)})}insertAt(t,n,a){const[r,i]=this.children.find(t);if(r)r.insertAt(i,n,a);else{const s=a==null?this.scroll.create("text",n):this.scroll.create(n,a);this.appendChild(s)}}insertBefore(t,n){t.parent!=null&&t.parent.children.remove(t);let a=null;this.children.insertBefore(t,n||null),t.parent=this,n!=null&&(a=n.domNode),(this.domNode.parentNode!==t.domNode||this.domNode.nextSibling!==a)&&this.domNode.insertBefore(t.domNode,a),t.attach()}length(){return this.children.reduce((t,n)=>t+n.length(),0)}moveChildren(t,n){this.children.forEach(a=>{t.insertBefore(a,n)})}optimize(t){if(super.optimize(t),this.enforceAllowedChildren(),this.uiNode!=null&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),this.children.length===0)if(this.statics.defaultChild!=null){const n=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(n)}else this.remove()}path(t,n=!1){const[a,r]=this.children.find(t,n),i=[[this,t]];return a instanceof Y0?i.concat(a.path(r,n)):(a!=null&&i.push([a,r]),i)}removeChild(t){this.children.remove(t)}replaceWith(t,n){const a=typeof t=="string"?this.scroll.create(t,n):t;return a instanceof Y0&&this.moveChildren(a),super.replaceWith(a)}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const a=this.clone();return this.parent&&this.parent.insertBefore(a,this.next||void 0),this.children.forEachAt(t,this.length(),(r,i,s)=>{const l=r.split(i,n);l!=null&&a.appendChild(l)}),a}splitAfter(t){const n=this.clone();for(;t.next!=null;)n.appendChild(t.next);return this.parent&&this.parent.insertBefore(n,this.next||void 0),n}unwrap(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()}update(t,n){const a=[],r=[];t.forEach(i=>{i.target===this.domNode&&i.type==="childList"&&(a.push(...i.addedNodes),r.push(...i.removedNodes))}),r.forEach(i=>{if(i.parentNode!=null&&i.tagName!=="IFRAME"&&document.body.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)return;const s=this.scroll.find(i);s!=null&&(s.domNode.parentNode==null||s.domNode.parentNode===this.domNode)&&s.detach()}),a.filter(i=>i.parentNode===this.domNode&&i!==this.uiNode).sort((i,s)=>i===s?0:i.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1).forEach(i=>{let s=null;i.nextSibling!=null&&(s=this.scroll.find(i.nextSibling));const l=Pc(i,this.scroll);(l.next!==s||l.next==null)&&(l.parent!=null&&l.parent.removeChild(this),this.insertBefore(l,s||void 0))}),this.enforceAllowedChildren()}};Kd.uiClass="";let pw=Kd;const d0=pw;function mw(o,t){if(Object.keys(o).length!==Object.keys(t).length)return!1;for(const n in o)if(o[n]!==t[n])return!1;return!0}const Un=class Hn extends d0{static create(t){return super.create(t)}static formats(t,n){const a=n.query(Hn.blotName);if(!(a!=null&&t.tagName===a.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new $r(this.domNode)}format(t,n){if(t===this.statics.blotName&&!n)this.children.forEach(a=>{a instanceof Hn||(a=a.wrap(Hn.blotName,!0)),this.attributes.copy(a)}),this.unwrap();else{const a=this.scroll.query(t,fe.INLINE);if(a==null)return;a instanceof k0?this.attributes.attribute(a,n):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n)}}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,a,r){this.formats()[a]!=null||this.scroll.query(a,fe.ATTRIBUTE)?this.isolate(t,n).format(a,r):super.formatAt(t,n,a,r)}optimize(t){super.optimize(t);const n=this.formats();if(Object.keys(n).length===0)return this.unwrap();const a=this.next;a instanceof Hn&&a.prev===this&&mw(n,a.formats())&&(a.moveChildren(this),a.remove())}replaceWith(t,n){const a=super.replaceWith(t,n);return this.attributes.copy(a),a}update(t,n){super.update(t,n),t.some(a=>a.target===this.domNode&&a.type==="attributes")&&this.attributes.build()}wrap(t,n){const a=super.wrap(t,n);return a instanceof Hn&&this.attributes.move(a),a}};Un.allowedChildren=[Un,_t],Un.blotName="inline",Un.scope=fe.INLINE_BLOT,Un.tagName="SPAN";let fw=Un;const Kl=fw,Zn=class Rs extends d0{static create(t){return super.create(t)}static formats(t,n){const a=n.query(Rs.blotName);if(!(a!=null&&t.tagName===a.tagName)){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return t.tagName.toLowerCase()}}constructor(t,n){super(t,n),this.attributes=new $r(this.domNode)}format(t,n){const a=this.scroll.query(t,fe.BLOCK);a!=null&&(a instanceof k0?this.attributes.attribute(a,n):t===this.statics.blotName&&!n?this.replaceWith(Rs.blotName):n&&(t!==this.statics.blotName||this.formats()[t]!==n)&&this.replaceWith(t,n))}formats(){const t=this.attributes.values(),n=this.statics.formats(this.domNode,this.scroll);return n!=null&&(t[this.statics.blotName]=n),t}formatAt(t,n,a,r){this.scroll.query(a,fe.BLOCK)!=null?this.format(a,r):super.formatAt(t,n,a,r)}insertAt(t,n,a){if(a==null||this.scroll.query(n,fe.INLINE)!=null)super.insertAt(t,n,a);else{const r=this.split(t);if(r!=null){const i=this.scroll.create(n,a);r.parent.insertBefore(i,r)}else throw new Error("Attempt to insertAt after block boundaries")}}replaceWith(t,n){const a=super.replaceWith(t,n);return this.attributes.copy(a),a}update(t,n){super.update(t,n),t.some(a=>a.target===this.domNode&&a.type==="attributes")&&this.attributes.build()}};Zn.blotName="block",Zn.scope=fe.BLOCK_BLOT,Zn.tagName="P",Zn.allowedChildren=[Kl,Zn,_t];let hw=Zn;const qo=hw,Is=class extends d0{checkMerge(){return this.next!==null&&this.next.statics.blotName===this.statics.blotName}deleteAt(t,n){super.deleteAt(t,n),this.enforceAllowedChildren()}formatAt(t,n,a,r){super.formatAt(t,n,a,r),this.enforceAllowedChildren()}insertAt(t,n,a){super.insertAt(t,n,a),this.enforceAllowedChildren()}optimize(t){super.optimize(t),this.children.length>0&&this.next!=null&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())}};Is.blotName="container",Is.scope=fe.BLOCK_BLOT;let vw=Is;const Lr=vw;class gw extends _t{static formats(t,n){}format(t,n){super.formatAt(0,this.length(),t,n)}formatAt(t,n,a,r){t===0&&n===this.length()?this.format(a,r):super.formatAt(t,n,a,r)}formats(){return this.statics.formats(this.domNode,this.scroll)}}const Ut=gw,bw={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},yw=100,zn=class extends d0{constructor(t,n){super(null,n),this.registry=t,this.scroll=this,this.build(),this.observer=new MutationObserver(a=>{this.update(a)}),this.observer.observe(this.domNode,bw),this.attach()}create(t,n){return this.registry.create(this,t,n)}find(t,n=!1){const a=this.registry.find(t,n);return a?a.scroll===this?a:n?this.find(a.scroll.domNode.parentNode,!0):null:null}query(t,n=fe.ANY){return this.registry.query(t,n)}register(...t){return this.registry.register(...t)}build(){this.scroll!=null&&super.build()}detach(){super.detach(),this.observer.disconnect()}deleteAt(t,n){this.update(),t===0&&n===this.length()?this.children.forEach(a=>{a.remove()}):super.deleteAt(t,n)}formatAt(t,n,a,r){this.update(),super.formatAt(t,n,a,r)}insertAt(t,n,a){this.update(),super.insertAt(t,n,a)}optimize(t=[],n={}){super.optimize(n);const a=n.mutationsMap||new WeakMap;let r=Array.from(this.observer.takeRecords());for(;r.length>0;)t.push(r.pop());const i=(c,u=!0)=>{c==null||c===this||c.domNode.parentNode!=null&&(a.has(c.domNode)||a.set(c.domNode,[]),u&&i(c.parent))},s=c=>{a.has(c.domNode)&&(c instanceof d0&&c.children.forEach(s),a.delete(c.domNode),c.optimize(n))};let l=t;for(let c=0;l.length>0;c+=1){if(c>=yw)throw new Error("[Parchment] Maximum optimize iterations reached");for(l.forEach(u=>{const d=this.find(u.target,!0);d!=null&&(d.domNode===u.target&&(u.type==="childList"?(i(this.find(u.previousSibling,!1)),Array.from(u.addedNodes).forEach(p=>{const m=this.find(p,!1);i(m,!1),m instanceof d0&&m.children.forEach(f=>{i(f,!1)})})):u.type==="attributes"&&i(d.prev)),i(d))}),this.children.forEach(s),l=Array.from(this.observer.takeRecords()),r=l.slice();r.length>0;)t.push(r.pop())}}update(t,n={}){t=t||this.observer.takeRecords();const a=new WeakMap;t.map(r=>{const i=this.find(r.target,!0);return i==null?null:a.has(i.domNode)?(a.get(i.domNode).push(r),null):(a.set(i.domNode,[r]),i)}).forEach(r=>{r!=null&&r!==this&&a.has(r.domNode)&&r.update(a.get(r.domNode)||[],n)}),n.mutationsMap=a,a.has(this.domNode)&&super.update(a.get(this.domNode),n),this.optimize(t,n)}};zn.blotName="scroll",zn.defaultChild=qo,zn.allowedChildren=[qo,Lr],zn.scope=fe.BLOCK_BLOT,zn.tagName="DIV";let Ew=zn;const Wl=Ew,Os=class Wd extends _t{static create(t){return document.createTextNode(t)}static value(t){return t.data}constructor(t,n){super(t,n),this.text=this.statics.value(this.domNode)}deleteAt(t,n){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+n)}index(t,n){return this.domNode===t?n:-1}insertAt(t,n,a){a==null?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):super.insertAt(t,n,a)}length(){return this.text.length}optimize(t){super.optimize(t),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof Wd&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())}position(t,n=!1){return[this.domNode,t]}split(t,n=!1){if(!n){if(t===0)return this;if(t===this.length())return this.next}const a=this.scroll.create(this.domNode.splitText(t));return this.parent.insertBefore(a,this.next||void 0),this.text=this.statics.value(this.domNode),a}update(t,n){t.some(a=>a.type==="characterData"&&a.target===this.domNode)&&(this.text=this.statics.value(this.domNode))}value(){return this.text}};Os.blotName="text",Os.scope=fe.INLINE_BLOT;let ww=Os;const or=ww,Cw=Object.freeze(Object.defineProperty({__proto__:null,Attributor:k0,AttributorStore:$r,BlockBlot:qo,ClassAttributor:h0,ContainerBlot:Lr,EmbedBlot:Ut,InlineBlot:Kl,LeafBlot:_t,ParentBlot:d0,Registry:oo,Scope:fe,ScrollBlot:Wl,StyleAttributor:cn,TextBlot:or},Symbol.toStringTag,{value:"Module"}));var $s={exports:{}},qt=-1,Vt=1,rt=0;function Uo(o,t,n,a,r){if(o===t)return o?[[rt,o]]:[];if(n!=null){var i=Dw(o,t,n);if(i)return i}var s=Yl(o,t),l=o.substring(0,s);o=o.substring(s),t=t.substring(s),s=Br(o,t);var c=o.substring(o.length-s);o=o.substring(0,o.length-s),t=t.substring(0,t.length-s);var u=_w(o,t);return l&&u.unshift([rt,l]),c&&u.push([rt,c]),Jl(u,r),a&&Tw(u),u}function _w(o,t){var n;if(!o)return[[Vt,t]];if(!t)return[[qt,o]];var a=o.length>t.length?o:t,r=o.length>t.length?t:o,i=a.indexOf(r);if(i!==-1)return n=[[Vt,a.substring(0,i)],[rt,r],[Vt,a.substring(i+r.length)]],o.length>t.length&&(n[0][0]=n[2][0]=qt),n;if(r.length===1)return[[qt,o],[Vt,t]];var s=Sw(o,t);if(s){var l=s[0],c=s[1],u=s[2],d=s[3],p=s[4],m=Uo(l,u),f=Uo(c,d);return m.concat([[rt,p]],f)}return Nw(o,t)}function Nw(o,t){for(var n=o.length,a=t.length,r=Math.ceil((n+a)/2),i=r,s=2*r,l=new Array(s),c=new Array(s),u=0;u<s;u++)l[u]=-1,c[u]=-1;l[i+1]=0,c[i+1]=0;for(var d=n-a,p=d%2!==0,m=0,f=0,h=0,y=0,g=0;g<r;g++){for(var C=-g+m;C<=g-f;C+=2){var x=i+C,D;C===-g||C!==g&&l[x-1]<l[x+1]?D=l[x+1]:D=l[x-1]+1;for(var _=D-C;D<n&&_<a&&o.charAt(D)===t.charAt(_);)D++,_++;if(l[x]=D,D>n)f+=2;else if(_>a)m+=2;else if(p){var T=i+d-C;if(T>=0&&T<s&&c[T]!==-1){var E=n-c[T];if(D>=E)return Mc(o,t,D,_)}}}for(var w=-g+h;w<=g-y;w+=2){var T=i+w,E;w===-g||w!==g&&c[T-1]<c[T+1]?E=c[T+1]:E=c[T-1]+1;for(var b=E-w;E<n&&b<a&&o.charAt(n-E-1)===t.charAt(a-b-1);)E++,b++;if(c[T]=E,E>n)y+=2;else if(b>a)h+=2;else if(!p){var x=i+d-w;if(x>=0&&x<s&&l[x]!==-1){var D=l[x],_=i+D-x;if(E=n-E,D>=E)return Mc(o,t,D,_)}}}}return[[qt,o],[Vt,t]]}function Mc(o,t,n,a){var r=o.substring(0,n),i=t.substring(0,a),s=o.substring(n),l=t.substring(a),c=Uo(r,i),u=Uo(s,l);return c.concat(u)}function Yl(o,t){if(!o||!t||o.charAt(0)!==t.charAt(0))return 0;for(var n=0,a=Math.min(o.length,t.length),r=a,i=0;n<r;)o.substring(i,r)==t.substring(i,r)?(n=r,i=n):a=r,r=Math.floor((a-n)/2+n);return Yd(o.charCodeAt(r-1))&&r--,r}function Fc(o,t){var n=o.length,a=t.length;if(n==0||a==0)return 0;n>a?o=o.substring(n-a):n<a&&(t=t.substring(0,n));var r=Math.min(n,a);if(o==t)return r;for(var i=0,s=1;;){var l=o.substring(r-s),c=t.indexOf(l);if(c==-1)return i;s+=c,(c==0||o.substring(r-s)==t.substring(0,s))&&(i=s,s++)}}function Br(o,t){if(!o||!t||o.slice(-1)!==t.slice(-1))return 0;for(var n=0,a=Math.min(o.length,t.length),r=a,i=0;n<r;)o.substring(o.length-r,o.length-i)==t.substring(t.length-r,t.length-i)?(n=r,i=n):a=r,r=Math.floor((a-n)/2+n);return Jd(o.charCodeAt(o.length-r))&&r--,r}function Sw(o,t){var n=o.length>t.length?o:t,a=o.length>t.length?t:o;if(n.length<4||a.length*2<n.length)return null;function r(f,h,y){for(var g=f.substring(y,y+Math.floor(f.length/4)),C=-1,x="",D,_,T,E;(C=h.indexOf(g,C+1))!==-1;){var w=Yl(f.substring(y),h.substring(C)),b=Br(f.substring(0,y),h.substring(0,C));x.length<b+w&&(x=h.substring(C-b,C)+h.substring(C,C+w),D=f.substring(0,y-b),_=f.substring(y+w),T=h.substring(0,C-b),E=h.substring(C+w))}return x.length*2>=f.length?[D,_,T,E,x]:null}var i=r(n,a,Math.ceil(n.length/4)),s=r(n,a,Math.ceil(n.length/2)),l;if(!i&&!s)return null;s?i?l=i[4].length>s[4].length?i:s:l=s:l=i;var c,u,d,p;o.length>t.length?(c=l[0],u=l[1],d=l[2],p=l[3]):(d=l[0],p=l[1],c=l[2],u=l[3]);var m=l[4];return[c,u,d,p,m]}function Tw(o){for(var t=!1,n=[],a=0,r=null,i=0,s=0,l=0,c=0,u=0;i<o.length;)o[i][0]==rt?(n[a++]=i,s=c,l=u,c=0,u=0,r=o[i][1]):(o[i][0]==Vt?c+=o[i][1].length:u+=o[i][1].length,r&&r.length<=Math.max(s,l)&&r.length<=Math.max(c,u)&&(o.splice(n[a-1],0,[qt,r]),o[n[a-1]+1][0]=Vt,a--,a--,i=a>0?n[a-1]:-1,s=0,l=0,c=0,u=0,r=null,t=!0)),i++;for(t&&Jl(o),Vw(o),i=1;i<o.length;){if(o[i-1][0]==qt&&o[i][0]==Vt){var d=o[i-1][1],p=o[i][1],m=Fc(d,p),f=Fc(p,d);m>=f?(m>=d.length/2||m>=p.length/2)&&(o.splice(i,0,[rt,p.substring(0,m)]),o[i-1][1]=d.substring(0,d.length-m),o[i+1][1]=p.substring(m),i++):(f>=d.length/2||f>=p.length/2)&&(o.splice(i,0,[rt,d.substring(0,f)]),o[i-1][0]=Vt,o[i-1][1]=p.substring(0,p.length-f),o[i+1][0]=qt,o[i+1][1]=d.substring(f),i++),i++}i++}}var jc=/[^a-zA-Z0-9]/,qc=/\s/,Uc=/[\r\n]/,kw=/\n\r?\n$/,xw=/^\r?\n\r?\n/;function Vw(o){function t(f,h){if(!f||!h)return 6;var y=f.charAt(f.length-1),g=h.charAt(0),C=y.match(jc),x=g.match(jc),D=C&&y.match(qc),_=x&&g.match(qc),T=D&&y.match(Uc),E=_&&g.match(Uc),w=T&&f.match(kw),b=E&&h.match(xw);return w||b?5:T||E?4:C&&!D&&_?3:D||_?2:C||x?1:0}for(var n=1;n<o.length-1;){if(o[n-1][0]==rt&&o[n+1][0]==rt){var a=o[n-1][1],r=o[n][1],i=o[n+1][1],s=Br(a,r);if(s){var l=r.substring(r.length-s);a=a.substring(0,a.length-s),r=l+r.substring(0,r.length-s),i=l+i}for(var c=a,u=r,d=i,p=t(a,r)+t(r,i);r.charAt(0)===i.charAt(0);){a+=r.charAt(0),r=r.substring(1)+i.charAt(0),i=i.substring(1);var m=t(a,r)+t(r,i);m>=p&&(p=m,c=a,u=r,d=i)}o[n-1][1]!=c&&(c?o[n-1][1]=c:(o.splice(n-1,1),n--),o[n][1]=u,d?o[n+1][1]=d:(o.splice(n+1,1),n--))}n++}}function Jl(o,t){o.push([rt,""]);for(var n=0,a=0,r=0,i="",s="",l;n<o.length;){if(n<o.length-1&&!o[n][1]){o.splice(n,1);continue}switch(o[n][0]){case Vt:r++,s+=o[n][1],n++;break;case qt:a++,i+=o[n][1],n++;break;case rt:var c=n-r-a-1;if(t){if(c>=0&&Qd(o[c][1])){var u=o[c][1].slice(-1);if(o[c][1]=o[c][1].slice(0,-1),i=u+i,s=u+s,!o[c][1]){o.splice(c,1),n--;var d=c-1;o[d]&&o[d][0]===Vt&&(r++,s=o[d][1]+s,d--),o[d]&&o[d][0]===qt&&(a++,i=o[d][1]+i,d--),c=d}}if(Xd(o[n][1])){var u=o[n][1].charAt(0);o[n][1]=o[n][1].slice(1),i+=u,s+=u}}if(n<o.length-1&&!o[n][1]){o.splice(n,1);break}if(i.length>0||s.length>0){i.length>0&&s.length>0&&(l=Yl(s,i),l!==0&&(c>=0?o[c][1]+=s.substring(0,l):(o.splice(0,0,[rt,s.substring(0,l)]),n++),s=s.substring(l),i=i.substring(l)),l=Br(s,i),l!==0&&(o[n][1]=s.substring(s.length-l)+o[n][1],s=s.substring(0,s.length-l),i=i.substring(0,i.length-l)));var p=r+a;i.length===0&&s.length===0?(o.splice(n-p,p),n=n-p):i.length===0?(o.splice(n-p,p,[Vt,s]),n=n-p+1):s.length===0?(o.splice(n-p,p,[qt,i]),n=n-p+1):(o.splice(n-p,p,[qt,i],[Vt,s]),n=n-p+2)}n!==0&&o[n-1][0]===rt?(o[n-1][1]+=o[n][1],o.splice(n,1)):n++,r=0,a=0,i="",s="";break}}o[o.length-1][1]===""&&o.pop();var m=!1;for(n=1;n<o.length-1;)o[n-1][0]===rt&&o[n+1][0]===rt&&(o[n][1].substring(o[n][1].length-o[n-1][1].length)===o[n-1][1]?(o[n][1]=o[n-1][1]+o[n][1].substring(0,o[n][1].length-o[n-1][1].length),o[n+1][1]=o[n-1][1]+o[n+1][1],o.splice(n-1,1),m=!0):o[n][1].substring(0,o[n+1][1].length)==o[n+1][1]&&(o[n-1][1]+=o[n+1][1],o[n][1]=o[n][1].substring(o[n+1][1].length)+o[n+1][1],o.splice(n+1,1),m=!0)),n++;m&&Jl(o,t)}function Yd(o){return o>=55296&&o<=56319}function Jd(o){return o>=56320&&o<=57343}function Xd(o){return Jd(o.charCodeAt(0))}function Qd(o){return Yd(o.charCodeAt(o.length-1))}function Aw(o){for(var t=[],n=0;n<o.length;n++)o[n][1].length>0&&t.push(o[n]);return t}function Zi(o,t,n,a){return Qd(o)||Xd(a)?null:Aw([[rt,o],[qt,t],[Vt,n],[rt,a]])}function Dw(o,t,n){var a=typeof n=="number"?{index:n,length:0}:n.oldRange,r=typeof n=="number"?null:n.newRange,i=o.length,s=t.length;if(a.length===0&&(r===null||r.length===0)){var l=a.index,c=o.slice(0,l),u=o.slice(l),d=r?r.index:null;e:{var p=l+s-i;if(d!==null&&d!==p||p<0||p>s)break e;var m=t.slice(0,p),f=t.slice(p);if(f!==u)break e;var h=Math.min(l,p),y=c.slice(0,h),g=m.slice(0,h);if(y!==g)break e;var C=c.slice(h),x=m.slice(h);return Zi(y,C,x,u)}e:{if(d!==null&&d!==l)break e;var D=l,m=t.slice(0,D),f=t.slice(D);if(m!==c)break e;var _=Math.min(i-D,s-D),T=u.slice(u.length-_),E=f.slice(f.length-_);if(T!==E)break e;var C=u.slice(0,u.length-_),x=f.slice(0,f.length-_);return Zi(c,C,x,T)}}if(a.length>0&&r&&r.length===0)e:{var y=o.slice(0,a.index),T=o.slice(a.index+a.length),h=y.length,_=T.length;if(s<h+_)break e;var g=t.slice(0,h),E=t.slice(s-_);if(y!==g||T!==E)break e;var C=o.slice(h,i-_),x=t.slice(h,s-_);return Zi(y,C,x,T)}return null}function Pr(o,t,n,a){return Uo(o,t,n,a,!0)}Pr.INSERT=Vt;Pr.DELETE=qt;Pr.EQUAL=rt;var Rw=Pr,ar={exports:{}};ar.exports;(function(o,t){var n=200,a="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",s="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",p="[object GeneratorFunction]",m="[object Map]",f="[object Number]",h="[object Object]",y="[object Promise]",g="[object RegExp]",C="[object Set]",x="[object String]",D="[object Symbol]",_="[object WeakMap]",T="[object ArrayBuffer]",E="[object DataView]",w="[object Float32Array]",b="[object Float64Array]",S="[object Int8Array]",k="[object Int16Array]",N="[object Int32Array]",A="[object Uint8Array]",O="[object Uint8ClampedArray]",$="[object Uint16Array]",V="[object Uint32Array]",I=/[\\^$.*+?()[\]{}|]/g,B=/\w*$/,Z=/^\[object .+?Constructor\]$/,L=/^(?:0|[1-9]\d*)$/,F={};F[i]=F[s]=F[T]=F[E]=F[l]=F[c]=F[w]=F[b]=F[S]=F[k]=F[N]=F[m]=F[f]=F[h]=F[g]=F[C]=F[x]=F[D]=F[A]=F[O]=F[$]=F[V]=!0,F[u]=F[d]=F[_]=!1;var G=typeof J0=="object"&&J0&&J0.Object===Object&&J0,ae=typeof self=="object"&&self&&self.Object===Object&&self,le=G||ae||Function("return this")(),U=t&&!t.nodeType&&t,te=U&&!0&&o&&!o.nodeType&&o,Q=te&&te.exports===U;function J(v,R){return v.set(R[0],R[1]),v}function ne(v,R){return v.add(R),v}function ye(v,R){for(var j=-1,Y=v?v.length:0;++j<Y&&R(v[j],j,v)!==!1;);return v}function P(v,R){for(var j=-1,Y=R.length,Ce=v.length;++j<Y;)v[Ce+j]=R[j];return v}function M(v,R,j,Y){for(var Ce=-1,he=v?v.length:0;++Ce<he;)j=R(j,v[Ce],Ce,v);return j}function q(v,R){for(var j=-1,Y=Array(v);++j<v;)Y[j]=R(j);return Y}function ee(v,R){return v==null?void 0:v[R]}function re(v){var R=!1;if(v!=null&&typeof v.toString!="function")try{R=!!(v+"")}catch{}return R}function se(v){var R=-1,j=Array(v.size);return v.forEach(function(Y,Ce){j[++R]=[Ce,Y]}),j}function ie(v,R){return function(j){return v(R(j))}}function Ee(v){var R=-1,j=Array(v.size);return v.forEach(function(Y){j[++R]=Y}),j}var Je=Array.prototype,pt=Function.prototype,Rt=Object.prototype,ve=le["__core-js_shared__"],Ht=function(){var v=/[^.]+$/.exec(ve&&ve.keys&&ve.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),xe=pt.toString,Zt=Rt.hasOwnProperty,o0=Rt.toString,Ft=RegExp("^"+xe.call(Zt).replace(I,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Q?le.Buffer:void 0,H0=le.Symbol,un=le.Uint8Array,It=ie(Object.getPrototypeOf,Object),$n=Object.create,ce=Rt.propertyIsEnumerable,oe=Je.splice,lt=Object.getOwnPropertySymbols,We=mt?mt.isBuffer:void 0,ft=ie(Object.keys,Object),ht=r0(le,"DataView"),Ge=r0(le,"Map"),et=r0(le,"Promise"),St=r0(le,"Set"),Tt=r0(le,"WeakMap"),vt=r0(Object,"create"),dn=kt(ht),A0=kt(Ge),pn=kt(et),pe=kt(St),Ue=kt(Tt),a0=H0?H0.prototype:void 0,ua=a0?a0.valueOf:void 0;function D0(v){var R=-1,j=v?v.length:0;for(this.clear();++R<j;){var Y=v[R];this.set(Y[0],Y[1])}}function Kr(){this.__data__=vt?vt(null):{}}function Wr(v){return this.has(v)&&delete this.__data__[v]}function Yr(v){var R=this.__data__;if(vt){var j=R[v];return j===a?void 0:j}return Zt.call(R,v)?R[v]:void 0}function da(v){var R=this.__data__;return vt?R[v]!==void 0:Zt.call(R,v)}function go(v,R){var j=this.__data__;return j[v]=vt&&R===void 0?a:R,this}D0.prototype.clear=Kr,D0.prototype.delete=Wr,D0.prototype.get=Yr,D0.prototype.has=da,D0.prototype.set=go;function ct(v){var R=-1,j=v?v.length:0;for(this.clear();++R<j;){var Y=v[R];this.set(Y[0],Y[1])}}function Jr(){this.__data__=[]}function Xr(v){var R=this.__data__,j=Bn(R,v);if(j<0)return!1;var Y=R.length-1;return j==Y?R.pop():oe.call(R,j,1),!0}function Qr(v){var R=this.__data__,j=Bn(R,v);return j<0?void 0:R[j][1]}function ei(v){return Bn(this.__data__,v)>-1}function ti(v,R){var j=this.__data__,Y=Bn(j,v);return Y<0?j.push([v,R]):j[Y][1]=R,this}ct.prototype.clear=Jr,ct.prototype.delete=Xr,ct.prototype.get=Qr,ct.prototype.has=ei,ct.prototype.set=ti;function gt(v){var R=-1,j=v?v.length:0;for(this.clear();++R<j;){var Y=v[R];this.set(Y[0],Y[1])}}function ni(){this.__data__={hash:new D0,map:new(Ge||ct),string:new D0}}function oi(v){return fn(this,v).delete(v)}function ai(v){return fn(this,v).get(v)}function ri(v){return fn(this,v).has(v)}function ii(v,R){return fn(this,v).set(v,R),this}gt.prototype.clear=ni,gt.prototype.delete=oi,gt.prototype.get=ai,gt.prototype.has=ri,gt.prototype.set=ii;function Ot(v){this.__data__=new ct(v)}function si(){this.__data__=new ct}function li(v){return this.__data__.delete(v)}function ci(v){return this.__data__.get(v)}function ui(v){return this.__data__.has(v)}function di(v,R){var j=this.__data__;if(j instanceof ct){var Y=j.__data__;if(!Ge||Y.length<n-1)return Y.push([v,R]),this;j=this.__data__=new gt(Y)}return j.set(v,R),this}Ot.prototype.clear=si,Ot.prototype.delete=li,Ot.prototype.get=ci,Ot.prototype.has=ui,Ot.prototype.set=di;function Ln(v,R){var j=wo(v)||Mn(v)?q(v.length,String):[],Y=j.length,Ce=!!Y;for(var he in v)Zt.call(v,he)&&!(Ce&&(he=="length"||Si(he,Y)))&&j.push(he);return j}function pa(v,R,j){var Y=v[R];(!(Zt.call(v,R)&&ga(Y,j))||j===void 0&&!(R in v))&&(v[R]=j)}function Bn(v,R){for(var j=v.length;j--;)if(ga(v[j][0],R))return j;return-1}function y0(v,R){return v&&Eo(R,_o(R),v)}function bo(v,R,j,Y,Ce,he,Oe){var Re;if(Y&&(Re=he?Y(v,Ce,he,Oe):Y(v)),Re!==void 0)return Re;if(!w0(v))return v;var tt=wo(v);if(tt){if(Re=_i(v),!R)return Ei(v,Re)}else{var Be=I0(v),bt=Be==d||Be==p;if(ba(v))return Pn(v,R);if(Be==h||Be==i||bt&&!he){if(re(v))return he?v:{};if(Re=E0(bt?{}:v),!R)return wi(v,y0(Re,v))}else{if(!F[Be])return he?v:{};Re=Ni(v,Be,bo,R)}}Oe||(Oe=new Ot);var $t=Oe.get(v);if($t)return $t;if(Oe.set(v,Re),!tt)var at=j?Ci(v):_o(v);return ye(at||v,function(yt,ut){at&&(ut=yt,yt=v[ut]),pa(Re,ut,bo(yt,R,j,Y,ut,v,Oe))}),Re}function pi(v){return w0(v)?$n(v):{}}function mi(v,R,j){var Y=R(v);return wo(v)?Y:P(Y,j(v))}function fi(v){return o0.call(v)}function hi(v){if(!w0(v)||ki(v))return!1;var R=Co(v)||re(v)?Ft:Z;return R.test(kt(v))}function vi(v){if(!ha(v))return ft(v);var R=[];for(var j in Object(v))Zt.call(v,j)&&j!="constructor"&&R.push(j);return R}function Pn(v,R){if(R)return v.slice();var j=new v.constructor(v.length);return v.copy(j),j}function yo(v){var R=new v.constructor(v.byteLength);return new un(R).set(new un(v)),R}function mn(v,R){var j=R?yo(v.buffer):v.buffer;return new v.constructor(j,v.byteOffset,v.byteLength)}function ma(v,R,j){var Y=R?j(se(v),!0):se(v);return M(Y,J,new v.constructor)}function fa(v){var R=new v.constructor(v.source,B.exec(v));return R.lastIndex=v.lastIndex,R}function gi(v,R,j){var Y=R?j(Ee(v),!0):Ee(v);return M(Y,ne,new v.constructor)}function bi(v){return ua?Object(ua.call(v)):{}}function yi(v,R){var j=R?yo(v.buffer):v.buffer;return new v.constructor(j,v.byteOffset,v.length)}function Ei(v,R){var j=-1,Y=v.length;for(R||(R=Array(Y));++j<Y;)R[j]=v[j];return R}function Eo(v,R,j,Y){j||(j={});for(var Ce=-1,he=R.length;++Ce<he;){var Oe=R[Ce],Re=void 0;pa(j,Oe,Re===void 0?v[Oe]:Re)}return j}function wi(v,R){return Eo(v,R0(v),R)}function Ci(v){return mi(v,_o,R0)}function fn(v,R){var j=v.__data__;return Ti(R)?j[typeof R=="string"?"string":"hash"]:j.map}function r0(v,R){var j=ee(v,R);return hi(j)?j:void 0}var R0=lt?ie(lt,Object):Vi,I0=fi;(ht&&I0(new ht(new ArrayBuffer(1)))!=E||Ge&&I0(new Ge)!=m||et&&I0(et.resolve())!=y||St&&I0(new St)!=C||Tt&&I0(new Tt)!=_)&&(I0=function(v){var R=o0.call(v),j=R==h?v.constructor:void 0,Y=j?kt(j):void 0;if(Y)switch(Y){case dn:return E;case A0:return m;case pn:return y;case pe:return C;case Ue:return _}return R});function _i(v){var R=v.length,j=v.constructor(R);return R&&typeof v[0]=="string"&&Zt.call(v,"index")&&(j.index=v.index,j.input=v.input),j}function E0(v){return typeof v.constructor=="function"&&!ha(v)?pi(It(v)):{}}function Ni(v,R,j,Y){var Ce=v.constructor;switch(R){case T:return yo(v);case l:case c:return new Ce(+v);case E:return mn(v,Y);case w:case b:case S:case k:case N:case A:case O:case $:case V:return yi(v,Y);case m:return ma(v,Y,j);case f:case x:return new Ce(v);case g:return fa(v);case C:return gi(v,Y,j);case D:return bi(v)}}function Si(v,R){return R=R??r,!!R&&(typeof v=="number"||L.test(v))&&v>-1&&v%1==0&&v<R}function Ti(v){var R=typeof v;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?v!=="__proto__":v===null}function ki(v){return!!Ht&&Ht in v}function ha(v){var R=v&&v.constructor,j=typeof R=="function"&&R.prototype||Rt;return v===j}function kt(v){if(v!=null){try{return xe.call(v)}catch{}try{return v+""}catch{}}return""}function va(v){return bo(v,!0,!0)}function ga(v,R){return v===R||v!==v&&R!==R}function Mn(v){return xi(v)&&Zt.call(v,"callee")&&(!ce.call(v,"callee")||o0.call(v)==i)}var wo=Array.isArray;function Fn(v){return v!=null&&ya(v.length)&&!Co(v)}function xi(v){return Ea(v)&&Fn(v)}var ba=We||Ai;function Co(v){var R=w0(v)?o0.call(v):"";return R==d||R==p}function ya(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=r}function w0(v){var R=typeof v;return!!v&&(R=="object"||R=="function")}function Ea(v){return!!v&&typeof v=="object"}function _o(v){return Fn(v)?Ln(v):vi(v)}function Vi(){return[]}function Ai(){return!1}o.exports=va})(ar,ar.exports);var e3=ar.exports,rr={exports:{}};rr.exports;(function(o,t){var n=200,a="__lodash_hash_undefined__",r=1,i=2,s=9007199254740991,l="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",d="[object Boolean]",p="[object Date]",m="[object Error]",f="[object Function]",h="[object GeneratorFunction]",y="[object Map]",g="[object Number]",C="[object Null]",x="[object Object]",D="[object Promise]",_="[object Proxy]",T="[object RegExp]",E="[object Set]",w="[object String]",b="[object Symbol]",S="[object Undefined]",k="[object WeakMap]",N="[object ArrayBuffer]",A="[object DataView]",O="[object Float32Array]",$="[object Float64Array]",V="[object Int8Array]",I="[object Int16Array]",B="[object Int32Array]",Z="[object Uint8Array]",L="[object Uint8ClampedArray]",F="[object Uint16Array]",G="[object Uint32Array]",ae=/[\\^$.*+?()[\]{}|]/g,le=/^\[object .+?Constructor\]$/,U=/^(?:0|[1-9]\d*)$/,te={};te[O]=te[$]=te[V]=te[I]=te[B]=te[Z]=te[L]=te[F]=te[G]=!0,te[l]=te[c]=te[N]=te[d]=te[A]=te[p]=te[m]=te[f]=te[y]=te[g]=te[x]=te[T]=te[E]=te[w]=te[k]=!1;var Q=typeof J0=="object"&&J0&&J0.Object===Object&&J0,J=typeof self=="object"&&self&&self.Object===Object&&self,ne=Q||J||Function("return this")(),ye=t&&!t.nodeType&&t,P=ye&&!0&&o&&!o.nodeType&&o,M=P&&P.exports===ye,q=M&&Q.process,ee=function(){try{return q&&q.binding&&q.binding("util")}catch{}}(),re=ee&&ee.isTypedArray;function se(v,R){for(var j=-1,Y=v==null?0:v.length,Ce=0,he=[];++j<Y;){var Oe=v[j];R(Oe,j,v)&&(he[Ce++]=Oe)}return he}function ie(v,R){for(var j=-1,Y=R.length,Ce=v.length;++j<Y;)v[Ce+j]=R[j];return v}function Ee(v,R){for(var j=-1,Y=v==null?0:v.length;++j<Y;)if(R(v[j],j,v))return!0;return!1}function Je(v,R){for(var j=-1,Y=Array(v);++j<v;)Y[j]=R(j);return Y}function pt(v){return function(R){return v(R)}}function Rt(v,R){return v.has(R)}function ve(v,R){return v==null?void 0:v[R]}function Ht(v){var R=-1,j=Array(v.size);return v.forEach(function(Y,Ce){j[++R]=[Ce,Y]}),j}function xe(v,R){return function(j){return v(R(j))}}function Zt(v){var R=-1,j=Array(v.size);return v.forEach(function(Y){j[++R]=Y}),j}var o0=Array.prototype,Ft=Function.prototype,mt=Object.prototype,H0=ne["__core-js_shared__"],un=Ft.toString,It=mt.hasOwnProperty,$n=function(){var v=/[^.]+$/.exec(H0&&H0.keys&&H0.keys.IE_PROTO||"");return v?"Symbol(src)_1."+v:""}(),ce=mt.toString,oe=RegExp("^"+un.call(It).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lt=M?ne.Buffer:void 0,We=ne.Symbol,ft=ne.Uint8Array,ht=mt.propertyIsEnumerable,Ge=o0.splice,et=We?We.toStringTag:void 0,St=Object.getOwnPropertySymbols,Tt=lt?lt.isBuffer:void 0,vt=xe(Object.keys,Object),dn=R0(ne,"DataView"),A0=R0(ne,"Map"),pn=R0(ne,"Promise"),pe=R0(ne,"Set"),Ue=R0(ne,"WeakMap"),a0=R0(Object,"create"),ua=kt(dn),D0=kt(A0),Kr=kt(pn),Wr=kt(pe),Yr=kt(Ue),da=We?We.prototype:void 0,go=da?da.valueOf:void 0;function ct(v){var R=-1,j=v==null?0:v.length;for(this.clear();++R<j;){var Y=v[R];this.set(Y[0],Y[1])}}function Jr(){this.__data__=a0?a0(null):{},this.size=0}function Xr(v){var R=this.has(v)&&delete this.__data__[v];return this.size-=R?1:0,R}function Qr(v){var R=this.__data__;if(a0){var j=R[v];return j===a?void 0:j}return It.call(R,v)?R[v]:void 0}function ei(v){var R=this.__data__;return a0?R[v]!==void 0:It.call(R,v)}function ti(v,R){var j=this.__data__;return this.size+=this.has(v)?0:1,j[v]=a0&&R===void 0?a:R,this}ct.prototype.clear=Jr,ct.prototype.delete=Xr,ct.prototype.get=Qr,ct.prototype.has=ei,ct.prototype.set=ti;function gt(v){var R=-1,j=v==null?0:v.length;for(this.clear();++R<j;){var Y=v[R];this.set(Y[0],Y[1])}}function ni(){this.__data__=[],this.size=0}function oi(v){var R=this.__data__,j=Pn(R,v);if(j<0)return!1;var Y=R.length-1;return j==Y?R.pop():Ge.call(R,j,1),--this.size,!0}function ai(v){var R=this.__data__,j=Pn(R,v);return j<0?void 0:R[j][1]}function ri(v){return Pn(this.__data__,v)>-1}function ii(v,R){var j=this.__data__,Y=Pn(j,v);return Y<0?(++this.size,j.push([v,R])):j[Y][1]=R,this}gt.prototype.clear=ni,gt.prototype.delete=oi,gt.prototype.get=ai,gt.prototype.has=ri,gt.prototype.set=ii;function Ot(v){var R=-1,j=v==null?0:v.length;for(this.clear();++R<j;){var Y=v[R];this.set(Y[0],Y[1])}}function si(){this.size=0,this.__data__={hash:new ct,map:new(A0||gt),string:new ct}}function li(v){var R=r0(this,v).delete(v);return this.size-=R?1:0,R}function ci(v){return r0(this,v).get(v)}function ui(v){return r0(this,v).has(v)}function di(v,R){var j=r0(this,v),Y=j.size;return j.set(v,R),this.size+=j.size==Y?0:1,this}Ot.prototype.clear=si,Ot.prototype.delete=li,Ot.prototype.get=ci,Ot.prototype.has=ui,Ot.prototype.set=di;function Ln(v){var R=-1,j=v==null?0:v.length;for(this.__data__=new Ot;++R<j;)this.add(v[R])}function pa(v){return this.__data__.set(v,a),this}function Bn(v){return this.__data__.has(v)}Ln.prototype.add=Ln.prototype.push=pa,Ln.prototype.has=Bn;function y0(v){var R=this.__data__=new gt(v);this.size=R.size}function bo(){this.__data__=new gt,this.size=0}function pi(v){var R=this.__data__,j=R.delete(v);return this.size=R.size,j}function mi(v){return this.__data__.get(v)}function fi(v){return this.__data__.has(v)}function hi(v,R){var j=this.__data__;if(j instanceof gt){var Y=j.__data__;if(!A0||Y.length<n-1)return Y.push([v,R]),this.size=++j.size,this;j=this.__data__=new Ot(Y)}return j.set(v,R),this.size=j.size,this}y0.prototype.clear=bo,y0.prototype.delete=pi,y0.prototype.get=mi,y0.prototype.has=fi,y0.prototype.set=hi;function vi(v,R){var j=Mn(v),Y=!j&&ga(v),Ce=!j&&!Y&&Fn(v),he=!j&&!Y&&!Ce&&Ea(v),Oe=j||Y||Ce||he,Re=Oe?Je(v.length,String):[],tt=Re.length;for(var Be in v)It.call(v,Be)&&!(Oe&&(Be=="length"||Ce&&(Be=="offset"||Be=="parent")||he&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||Ni(Be,tt)))&&Re.push(Be);return Re}function Pn(v,R){for(var j=v.length;j--;)if(va(v[j][0],R))return j;return-1}function yo(v,R,j){var Y=R(v);return Mn(v)?Y:ie(Y,j(v))}function mn(v){return v==null?v===void 0?S:C:et&&et in Object(v)?I0(v):ha(v)}function ma(v){return w0(v)&&mn(v)==l}function fa(v,R,j,Y,Ce){return v===R?!0:v==null||R==null||!w0(v)&&!w0(R)?v!==v&&R!==R:gi(v,R,j,Y,fa,Ce)}function gi(v,R,j,Y,Ce,he){var Oe=Mn(v),Re=Mn(R),tt=Oe?c:E0(v),Be=Re?c:E0(R);tt=tt==l?x:tt,Be=Be==l?x:Be;var bt=tt==x,$t=Be==x,at=tt==Be;if(at&&Fn(v)){if(!Fn(R))return!1;Oe=!0,bt=!1}if(at&&!bt)return he||(he=new y0),Oe||Ea(v)?Eo(v,R,j,Y,Ce,he):wi(v,R,tt,j,Y,Ce,he);if(!(j&r)){var yt=bt&&It.call(v,"__wrapped__"),ut=$t&&It.call(R,"__wrapped__");if(yt||ut){var Z0=yt?v.value():v,O0=ut?R.value():R;return he||(he=new y0),Ce(Z0,O0,j,Y,he)}}return at?(he||(he=new y0),Ci(v,R,j,Y,Ce,he)):!1}function bi(v){if(!ya(v)||Ti(v))return!1;var R=ba(v)?oe:le;return R.test(kt(v))}function yi(v){return w0(v)&&Co(v.length)&&!!te[mn(v)]}function Ei(v){if(!ki(v))return vt(v);var R=[];for(var j in Object(v))It.call(v,j)&&j!="constructor"&&R.push(j);return R}function Eo(v,R,j,Y,Ce,he){var Oe=j&r,Re=v.length,tt=R.length;if(Re!=tt&&!(Oe&&tt>Re))return!1;var Be=he.get(v);if(Be&&he.get(R))return Be==R;var bt=-1,$t=!0,at=j&i?new Ln:void 0;for(he.set(v,R),he.set(R,v);++bt<Re;){var yt=v[bt],ut=R[bt];if(Y)var Z0=Oe?Y(ut,yt,bt,R,v,he):Y(yt,ut,bt,v,R,he);if(Z0!==void 0){if(Z0)continue;$t=!1;break}if(at){if(!Ee(R,function(O0,hn){if(!Rt(at,hn)&&(yt===O0||Ce(yt,O0,j,Y,he)))return at.push(hn)})){$t=!1;break}}else if(!(yt===ut||Ce(yt,ut,j,Y,he))){$t=!1;break}}return he.delete(v),he.delete(R),$t}function wi(v,R,j,Y,Ce,he,Oe){switch(j){case A:if(v.byteLength!=R.byteLength||v.byteOffset!=R.byteOffset)return!1;v=v.buffer,R=R.buffer;case N:return!(v.byteLength!=R.byteLength||!he(new ft(v),new ft(R)));case d:case p:case g:return va(+v,+R);case m:return v.name==R.name&&v.message==R.message;case T:case w:return v==R+"";case y:var Re=Ht;case E:var tt=Y&r;if(Re||(Re=Zt),v.size!=R.size&&!tt)return!1;var Be=Oe.get(v);if(Be)return Be==R;Y|=i,Oe.set(v,R);var bt=Eo(Re(v),Re(R),Y,Ce,he,Oe);return Oe.delete(v),bt;case b:if(go)return go.call(v)==go.call(R)}return!1}function Ci(v,R,j,Y,Ce,he){var Oe=j&r,Re=fn(v),tt=Re.length,Be=fn(R),bt=Be.length;if(tt!=bt&&!Oe)return!1;for(var $t=tt;$t--;){var at=Re[$t];if(!(Oe?at in R:It.call(R,at)))return!1}var yt=he.get(v);if(yt&&he.get(R))return yt==R;var ut=!0;he.set(v,R),he.set(R,v);for(var Z0=Oe;++$t<tt;){at=Re[$t];var O0=v[at],hn=R[at];if(Y)var h1=Oe?Y(hn,O0,at,R,v,he):Y(O0,hn,at,v,R,he);if(!(h1===void 0?O0===hn||Ce(O0,hn,j,Y,he):h1)){ut=!1;break}Z0||(Z0=at=="constructor")}if(ut&&!Z0){var wa=v.constructor,Ca=R.constructor;wa!=Ca&&"constructor"in v&&"constructor"in R&&!(typeof wa=="function"&&wa instanceof wa&&typeof Ca=="function"&&Ca instanceof Ca)&&(ut=!1)}return he.delete(v),he.delete(R),ut}function fn(v){return yo(v,_o,_i)}function r0(v,R){var j=v.__data__;return Si(R)?j[typeof R=="string"?"string":"hash"]:j.map}function R0(v,R){var j=ve(v,R);return bi(j)?j:void 0}function I0(v){var R=It.call(v,et),j=v[et];try{v[et]=void 0;var Y=!0}catch{}var Ce=ce.call(v);return Y&&(R?v[et]=j:delete v[et]),Ce}var _i=St?function(v){return v==null?[]:(v=Object(v),se(St(v),function(R){return ht.call(v,R)}))}:Vi,E0=mn;(dn&&E0(new dn(new ArrayBuffer(1)))!=A||A0&&E0(new A0)!=y||pn&&E0(pn.resolve())!=D||pe&&E0(new pe)!=E||Ue&&E0(new Ue)!=k)&&(E0=function(v){var R=mn(v),j=R==x?v.constructor:void 0,Y=j?kt(j):"";if(Y)switch(Y){case ua:return A;case D0:return y;case Kr:return D;case Wr:return E;case Yr:return k}return R});function Ni(v,R){return R=R??s,!!R&&(typeof v=="number"||U.test(v))&&v>-1&&v%1==0&&v<R}function Si(v){var R=typeof v;return R=="string"||R=="number"||R=="symbol"||R=="boolean"?v!=="__proto__":v===null}function Ti(v){return!!$n&&$n in v}function ki(v){var R=v&&v.constructor,j=typeof R=="function"&&R.prototype||mt;return v===j}function ha(v){return ce.call(v)}function kt(v){if(v!=null){try{return un.call(v)}catch{}try{return v+""}catch{}}return""}function va(v,R){return v===R||v!==v&&R!==R}var ga=ma(function(){return arguments}())?ma:function(v){return w0(v)&&It.call(v,"callee")&&!ht.call(v,"callee")},Mn=Array.isArray;function wo(v){return v!=null&&Co(v.length)&&!ba(v)}var Fn=Tt||Ai;function xi(v,R){return fa(v,R)}function ba(v){if(!ya(v))return!1;var R=mn(v);return R==f||R==h||R==u||R==_}function Co(v){return typeof v=="number"&&v>-1&&v%1==0&&v<=s}function ya(v){var R=typeof v;return v!=null&&(R=="object"||R=="function")}function w0(v){return v!=null&&typeof v=="object"}var Ea=re?pt(re):yi;function _o(v){return wo(v)?vi(v):Ei(v)}function Vi(){return[]}function Ai(){return!1}o.exports=xi})(rr,rr.exports);var t3=rr.exports,Xl={};Object.defineProperty(Xl,"__esModule",{value:!0});const Iw=e3,Ow=t3;var Ls;(function(o){function t(i={},s={},l=!1){typeof i!="object"&&(i={}),typeof s!="object"&&(s={});let c=Iw(s);l||(c=Object.keys(c).reduce((u,d)=>(c[d]!=null&&(u[d]=c[d]),u),{}));for(const u in i)i[u]!==void 0&&s[u]===void 0&&(c[u]=i[u]);return Object.keys(c).length>0?c:void 0}o.compose=t;function n(i={},s={}){typeof i!="object"&&(i={}),typeof s!="object"&&(s={});const l=Object.keys(i).concat(Object.keys(s)).reduce((c,u)=>(Ow(i[u],s[u])||(c[u]=s[u]===void 0?null:s[u]),c),{});return Object.keys(l).length>0?l:void 0}o.diff=n;function a(i={},s={}){i=i||{};const l=Object.keys(s).reduce((c,u)=>(s[u]!==i[u]&&i[u]!==void 0&&(c[u]=s[u]),c),{});return Object.keys(i).reduce((c,u)=>(i[u]!==s[u]&&s[u]===void 0&&(c[u]=null),c),l)}o.invert=a;function r(i,s,l=!1){if(typeof i!="object")return s;if(typeof s!="object")return;if(!l)return s;const c=Object.keys(s).reduce((u,d)=>(i[d]===void 0&&(u[d]=s[d]),u),{});return Object.keys(c).length>0?c:void 0}o.transform=r})(Ls||(Ls={}));Xl.default=Ls;var Mr={};Object.defineProperty(Mr,"__esModule",{value:!0});var Bs;(function(o){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}o.length=t})(Bs||(Bs={}));Mr.default=Bs;var Ql={};Object.defineProperty(Ql,"__esModule",{value:!0});const Hc=Mr;class $w{constructor(t){this.ops=t,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const n=this.ops[this.index];if(n){const a=this.offset,r=Hc.default.length(n);if(t>=r-a?(t=r-a,this.index+=1,this.offset=0):this.offset+=t,typeof n.delete=="number")return{delete:t};{const i={};return n.attributes&&(i.attributes=n.attributes),typeof n.retain=="number"?i.retain=t:typeof n.retain=="object"&&n.retain!==null?i.retain=n.retain:typeof n.insert=="string"?i.insert=n.insert.substr(a,t):i.insert=n.insert,i}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?Hc.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const t=this.ops[this.index];return t?typeof t.delete=="number"?"delete":typeof t.retain=="number"||typeof t.retain=="object"&&t.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const t=this.offset,n=this.index,a=this.next(),r=this.ops.slice(this.index);return this.offset=t,this.index=n,[a].concat(r)}}else return[]}}Ql.default=$w;(function(o,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=Rw,a=e3,r=t3,i=Xl;t.AttributeMap=i.default;const s=Mr;t.Op=s.default;const l=Ql;t.OpIterator=l.default;const c="\0",u=(p,m)=>{if(typeof p!="object"||p===null)throw new Error(`cannot retain a ${typeof p}`);if(typeof m!="object"||m===null)throw new Error(`cannot retain a ${typeof m}`);const f=Object.keys(p)[0];if(!f||f!==Object.keys(m)[0])throw new Error(`embed types not matched: ${f} != ${Object.keys(m)[0]}`);return[f,p[f],m[f]]};class d{constructor(m){Array.isArray(m)?this.ops=m:m!=null&&Array.isArray(m.ops)?this.ops=m.ops:this.ops=[]}static registerEmbed(m,f){this.handlers[m]=f}static unregisterEmbed(m){delete this.handlers[m]}static getHandler(m){const f=this.handlers[m];if(!f)throw new Error(`no handlers for embed type "${m}"`);return f}insert(m,f){const h={};return typeof m=="string"&&m.length===0?this:(h.insert=m,f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(h.attributes=f),this.push(h))}delete(m){return m<=0?this:this.push({delete:m})}retain(m,f){if(typeof m=="number"&&m<=0)return this;const h={retain:m};return f!=null&&typeof f=="object"&&Object.keys(f).length>0&&(h.attributes=f),this.push(h)}push(m){let f=this.ops.length,h=this.ops[f-1];if(m=a(m),typeof h=="object"){if(typeof m.delete=="number"&&typeof h.delete=="number")return this.ops[f-1]={delete:h.delete+m.delete},this;if(typeof h.delete=="number"&&m.insert!=null&&(f-=1,h=this.ops[f-1],typeof h!="object"))return this.ops.unshift(m),this;if(r(m.attributes,h.attributes)){if(typeof m.insert=="string"&&typeof h.insert=="string")return this.ops[f-1]={insert:h.insert+m.insert},typeof m.attributes=="object"&&(this.ops[f-1].attributes=m.attributes),this;if(typeof m.retain=="number"&&typeof h.retain=="number")return this.ops[f-1]={retain:h.retain+m.retain},typeof m.attributes=="object"&&(this.ops[f-1].attributes=m.attributes),this}}return f===this.ops.length?this.ops.push(m):this.ops.splice(f,0,m),this}chop(){const m=this.ops[this.ops.length-1];return m&&typeof m.retain=="number"&&!m.attributes&&this.ops.pop(),this}filter(m){return this.ops.filter(m)}forEach(m){this.ops.forEach(m)}map(m){return this.ops.map(m)}partition(m){const f=[],h=[];return this.forEach(y=>{(m(y)?f:h).push(y)}),[f,h]}reduce(m,f){return this.ops.reduce(m,f)}changeLength(){return this.reduce((m,f)=>f.insert?m+s.default.length(f):f.delete?m-f.delete:m,0)}length(){return this.reduce((m,f)=>m+s.default.length(f),0)}slice(m=0,f=1/0){const h=[],y=new l.default(this.ops);let g=0;for(;g<f&&y.hasNext();){let C;g<m?C=y.next(m-g):(C=y.next(f-g),h.push(C)),g+=s.default.length(C)}return new d(h)}compose(m){const f=new l.default(this.ops),h=new l.default(m.ops),y=[],g=h.peek();if(g!=null&&typeof g.retain=="number"&&g.attributes==null){let x=g.retain;for(;f.peekType()==="insert"&&f.peekLength()<=x;)x-=f.peekLength(),y.push(f.next());g.retain-x>0&&h.next(g.retain-x)}const C=new d(y);for(;f.hasNext()||h.hasNext();)if(h.peekType()==="insert")C.push(h.next());else if(f.peekType()==="delete")C.push(f.next());else{const x=Math.min(f.peekLength(),h.peekLength()),D=f.next(x),_=h.next(x);if(_.retain){const T={};if(typeof D.retain=="number")T.retain=typeof _.retain=="number"?x:_.retain;else if(typeof _.retain=="number")D.retain==null?T.insert=D.insert:T.retain=D.retain;else{const w=D.retain==null?"insert":"retain",[b,S,k]=u(D[w],_.retain),N=d.getHandler(b);T[w]={[b]:N.compose(S,k,w==="retain")}}const E=i.default.compose(D.attributes,_.attributes,typeof D.retain=="number");if(E&&(T.attributes=E),C.push(T),!h.hasNext()&&r(C.ops[C.ops.length-1],T)){const w=new d(f.rest());return C.concat(w).chop()}}else typeof _.delete=="number"&&(typeof D.retain=="number"||typeof D.retain=="object"&&D.retain!==null)&&C.push(_)}return C.chop()}concat(m){const f=new d(this.ops.slice());return m.ops.length>0&&(f.push(m.ops[0]),f.ops=f.ops.concat(m.ops.slice(1))),f}diff(m,f){if(this.ops===m.ops)return new d;const h=[this,m].map(D=>D.map(_=>{if(_.insert!=null)return typeof _.insert=="string"?_.insert:c;const T=D===m?"on":"with";throw new Error("diff() called "+T+" non-document")}).join("")),y=new d,g=n(h[0],h[1],f,!0),C=new l.default(this.ops),x=new l.default(m.ops);return g.forEach(D=>{let _=D[1].length;for(;_>0;){let T=0;switch(D[0]){case n.INSERT:T=Math.min(x.peekLength(),_),y.push(x.next(T));break;case n.DELETE:T=Math.min(_,C.peekLength()),C.next(T),y.delete(T);break;case n.EQUAL:T=Math.min(C.peekLength(),x.peekLength(),_);const E=C.next(T),w=x.next(T);r(E.insert,w.insert)?y.retain(T,i.default.diff(E.attributes,w.attributes)):y.push(w).delete(T);break}_-=T}}),y.chop()}eachLine(m,f=`
`){const h=new l.default(this.ops);let y=new d,g=0;for(;h.hasNext();){if(h.peekType()!=="insert")return;const C=h.peek(),x=s.default.length(C)-h.peekLength(),D=typeof C.insert=="string"?C.insert.indexOf(f,x)-x:-1;if(D<0)y.push(h.next());else if(D>0)y.push(h.next(D));else{if(m(y,h.next(1).attributes||{},g)===!1)return;g+=1,y=new d}}y.length()>0&&m(y,{},g)}invert(m){const f=new d;return this.reduce((h,y)=>{if(y.insert)f.delete(s.default.length(y));else{if(typeof y.retain=="number"&&y.attributes==null)return f.retain(y.retain),h+y.retain;if(y.delete||typeof y.retain=="number"){const g=y.delete||y.retain;return m.slice(h,h+g).forEach(x=>{y.delete?f.push(x):y.retain&&y.attributes&&f.retain(s.default.length(x),i.default.invert(y.attributes,x.attributes))}),h+g}else if(typeof y.retain=="object"&&y.retain!==null){const g=m.slice(h,h+1),C=new l.default(g.ops).next(),[x,D,_]=u(y.retain,C.insert),T=d.getHandler(x);return f.retain({[x]:T.invert(D,_)},i.default.invert(y.attributes,C.attributes)),h+1}}return h},0),f.chop()}transform(m,f=!1){if(f=!!f,typeof m=="number")return this.transformPosition(m,f);const h=m,y=new l.default(this.ops),g=new l.default(h.ops),C=new d;for(;y.hasNext()||g.hasNext();)if(y.peekType()==="insert"&&(f||g.peekType()!=="insert"))C.retain(s.default.length(y.next()));else if(g.peekType()==="insert")C.push(g.next());else{const x=Math.min(y.peekLength(),g.peekLength()),D=y.next(x),_=g.next(x);if(D.delete)continue;if(_.delete)C.push(_);else{const T=D.retain,E=_.retain;let w=typeof E=="object"&&E!==null?E:x;if(typeof T=="object"&&T!==null&&typeof E=="object"&&E!==null){const b=Object.keys(T)[0];if(b===Object.keys(E)[0]){const S=d.getHandler(b);S&&(w={[b]:S.transform(T[b],E[b],f)})}}C.retain(w,i.default.transform(D.attributes,_.attributes,f))}}return C.chop()}transformPosition(m,f=!1){f=!!f;const h=new l.default(this.ops);let y=0;for(;h.hasNext()&&y<=m;){const g=h.peekLength(),C=h.peekType();if(h.next(),C==="delete"){m-=Math.min(g,m-y);continue}else C==="insert"&&(y<m||!f)&&(m+=g);y+=g}return m}}d.Op=s.default,d.OpIterator=l.default,d.AttributeMap=i.default,d.handlers={},t.default=d,o.exports=d,o.exports.default=d})($s,$s.exports);var Jt=$s.exports;const me=al(Jt);class v0 extends Ut{static value(){}optimize(){(this.prev||this.next)&&this.remove()}length(){return 0}value(){return""}}v0.blotName="break";v0.tagName="BR";let m0=class extends or{};function Fr(o){return o.replace(/[&<>"']/g,t=>({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"})[t])}const C0=class C0 extends Kl{static compare(t,n){const a=C0.order.indexOf(t),r=C0.order.indexOf(n);return a>=0||r>=0?a-r:t===n?0:t<n?-1:1}formatAt(t,n,a,r){if(C0.compare(this.statics.blotName,a)<0&&this.scroll.query(a,fe.BLOT)){const i=this.isolate(t,n);r&&i.wrap(a,r)}else super.formatAt(t,n,a,r)}optimize(t){if(super.optimize(t),this.parent instanceof C0&&C0.compare(this.statics.blotName,this.parent.statics.blotName)>0){const n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}};H(C0,"allowedChildren",[C0,v0,Ut,m0]),H(C0,"order",["cursor","inline","link","underline","strike","italic","bold","script","code"]);let x0=C0;const Zc=1;class dt extends qo{constructor(){super(...arguments);H(this,"cache",{})}delta(){return this.cache.delta==null&&(this.cache.delta=n3(this)),this.cache.delta}deleteAt(n,a){super.deleteAt(n,a),this.cache={}}formatAt(n,a,r,i){a<=0||(this.scroll.query(r,fe.BLOCK)?n+a===this.length()&&this.format(r,i):super.formatAt(n,Math.min(a,this.length()-n-1),r,i),this.cache={})}insertAt(n,a,r){if(r!=null){super.insertAt(n,a,r),this.cache={};return}if(a.length===0)return;const i=a.split(`
`),s=i.shift();s.length>0&&(n<this.length()-1||this.children.tail==null?super.insertAt(Math.min(n,this.length()-1),s):this.children.tail.insertAt(this.children.tail.length(),s),this.cache={});let l=this;i.reduce((c,u)=>(l=l.split(c,!0),l.insertAt(0,u),u.length),n+s.length)}insertBefore(n,a){const{head:r}=this.children;super.insertBefore(n,a),r instanceof v0&&r.remove(),this.cache={}}length(){return this.cache.length==null&&(this.cache.length=super.length()+Zc),this.cache.length}moveChildren(n,a){super.moveChildren(n,a),this.cache={}}optimize(n){super.optimize(n),this.cache={}}path(n){return super.path(n,!0)}removeChild(n){super.removeChild(n),this.cache={}}split(n){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(a&&(n===0||n>=this.length()-Zc)){const i=this.clone();return n===0?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}const r=super.split(n,a);return this.cache={},r}}dt.blotName="block";dt.tagName="P";dt.defaultChild=v0;dt.allowedChildren=[v0,x0,Ut,m0];class Yt extends Ut{attach(){super.attach(),this.attributes=new $r(this.domNode)}delta(){return new me().insert(this.value(),{...this.formats(),...this.attributes.values()})}format(t,n){const a=this.scroll.query(t,fe.BLOCK_ATTRIBUTE);a!=null&&this.attributes.attribute(a,n)}formatAt(t,n,a,r){this.format(a,r)}insertAt(t,n,a){if(a!=null){super.insertAt(t,n,a);return}const r=n.split(`
`),i=r.pop(),s=r.map(c=>{const u=this.scroll.create(dt.blotName);return u.insertAt(0,c),u}),l=this.split(t);s.forEach(c=>{this.parent.insertBefore(c,l)}),i&&this.parent.insertBefore(this.scroll.create("text",i),l)}}Yt.scope=fe.BLOCK_BLOT;function n3(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o.descendants(_t).reduce((n,a)=>a.length()===0?n:n.insert(a.value(),Kt(a,{},t)),new me).insert(`
`,Kt(o))}function Kt(o){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return o==null||("formats"in o&&typeof o.formats=="function"&&(t={...t,...o.formats()},n&&delete t["code-token"]),o.parent==null||o.parent.statics.blotName==="scroll"||o.parent.statics.scope!==o.statics.scope)?t:Kt(o.parent,t,n)}const zt=class zt extends Ut{static value(){}constructor(t,n,a){super(t,n),this.selection=a,this.textNode=document.createTextNode(zt.CONTENTS),this.domNode.appendChild(this.textNode),this.savedLength=0}detach(){this.parent!=null&&this.parent.removeChild(this)}format(t,n){if(this.savedLength!==0){super.format(t,n);return}let a=this,r=0;for(;a!=null&&a.statics.scope!==fe.BLOCK_BLOT;)r+=a.offset(a.parent),a=a.parent;a!=null&&(this.savedLength=zt.CONTENTS.length,a.optimize(),a.formatAt(r,zt.CONTENTS.length,t,n),this.savedLength=0)}index(t,n){return t===this.textNode?0:super.index(t,n)}length(){return this.savedLength}position(){return[this.textNode,this.textNode.data.length]}remove(){super.remove(),this.parent=null}restore(){if(this.selection.composing||this.parent==null)return null;const t=this.selection.getNativeRange();for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);const n=this.prev instanceof m0?this.prev:null,a=n?n.length():0,r=this.next instanceof m0?this.next:null,i=r?r.text:"",{textNode:s}=this,l=s.data.split(zt.CONTENTS).join("");s.data=zt.CONTENTS;let c;if(n)c=n,(l||r)&&(n.insertAt(n.length(),l+i),r&&r.remove());else if(r)c=r,r.insertAt(0,l);else{const u=document.createTextNode(l);c=this.scroll.create(u),this.parent.insertBefore(c,this)}if(this.remove(),t){const u=(m,f)=>n&&m===n.domNode?f:m===s?a+f-1:r&&m===r.domNode?a+l.length+f:null,d=u(t.start.node,t.start.offset),p=u(t.end.node,t.end.offset);if(d!==null&&p!==null)return{startNode:c.domNode,startOffset:d,endNode:c.domNode,endOffset:p}}return null}update(t,n){if(t.some(a=>a.type==="characterData"&&a.target===this.textNode)){const a=this.restore();a&&(n.range=a)}}optimize(t){super.optimize(t);let{parent:n}=this;for(;n;){if(n.domNode.tagName==="A"){this.savedLength=zt.CONTENTS.length,n.isolate(this.offset(n),this.length()).unwrap(),this.savedLength=0;break}n=n.parent}}value(){return""}};H(zt,"blotName","cursor"),H(zt,"className","ql-cursor"),H(zt,"tagName","span"),H(zt,"CONTENTS","\uFEFF");let ao=zt;var o3={exports:{}};(function(o){var t=Object.prototype.hasOwnProperty,n="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(n=!1));function r(c,u,d){this.fn=c,this.context=u,this.once=d||!1}function i(c,u,d,p,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var f=new r(d,p||c,m),h=n?n+u:u;return c._events[h]?c._events[h].fn?c._events[h]=[c._events[h],f]:c._events[h].push(f):(c._events[h]=f,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new a:delete c._events[u]}function l(){this._events=new a,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],d,p;if(this._eventsCount===0)return u;for(p in d=this._events)t.call(d,p)&&u.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=n?n+u:u,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var m=0,f=p.length,h=new Array(f);m<f;m++)h[m]=p[m].fn;return h},l.prototype.listenerCount=function(u){var d=n?n+u:u,p=this._events[d];return p?p.fn?1:p.length:0},l.prototype.emit=function(u,d,p,m,f,h){var y=n?n+u:u;if(!this._events[y])return!1;var g=this._events[y],C=arguments.length,x,D;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),C){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,d),!0;case 3:return g.fn.call(g.context,d,p),!0;case 4:return g.fn.call(g.context,d,p,m),!0;case 5:return g.fn.call(g.context,d,p,m,f),!0;case 6:return g.fn.call(g.context,d,p,m,f,h),!0}for(D=1,x=new Array(C-1);D<C;D++)x[D-1]=arguments[D];g.fn.apply(g.context,x)}else{var _=g.length,T;for(D=0;D<_;D++)switch(g[D].once&&this.removeListener(u,g[D].fn,void 0,!0),C){case 1:g[D].fn.call(g[D].context);break;case 2:g[D].fn.call(g[D].context,d);break;case 3:g[D].fn.call(g[D].context,d,p);break;case 4:g[D].fn.call(g[D].context,d,p,m);break;default:if(!x)for(T=1,x=new Array(C-1);T<C;T++)x[T-1]=arguments[T];g[D].fn.apply(g[D].context,x)}}return!0},l.prototype.on=function(u,d,p){return i(this,u,d,p,!1)},l.prototype.once=function(u,d,p){return i(this,u,d,p,!0)},l.prototype.removeListener=function(u,d,p,m){var f=n?n+u:u;if(!this._events[f])return this;if(!d)return s(this,f),this;var h=this._events[f];if(h.fn)h.fn===d&&(!m||h.once)&&(!p||h.context===p)&&s(this,f);else{for(var y=0,g=[],C=h.length;y<C;y++)(h[y].fn!==d||m&&!h[y].once||p&&h[y].context!==p)&&g.push(h[y]);g.length?this._events[f]=g.length===1?g[0]:g:s(this,f)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&s(this,d)):(this._events=new a,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,o.exports=l})(o3);var Lw=o3.exports;const Bw=al(Lw),Ps=new WeakMap,Ms=["error","warn","log","info"];let Fs="warn";function a3(o){if(Fs&&Ms.indexOf(o)<=Ms.indexOf(Fs)){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];console[o](...n)}}function U0(o){return Ms.reduce((t,n)=>(t[n]=a3.bind(console,n,o),t),{})}U0.level=o=>{Fs=o};a3.level=U0.level;const zi=U0("quill:events"),Pw=["selectionchange","mousedown","mouseup","click"];Pw.forEach(o=>{document.addEventListener(o,function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];Array.from(document.querySelectorAll(".ql-container")).forEach(r=>{const i=Ps.get(r);i&&i.emitter&&i.emitter.handleDOM(...n)})})});class de extends Bw{constructor(){super(),this.domListeners={},this.on("error",zi.error)}emit(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return zi.log.call(zi,...n),super.emit(...n)}handleDOM(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];(this.domListeners[t.type]||[]).forEach(i=>{let{node:s,handler:l}=i;(t.target===s||s.contains(t.target))&&l(t,...a)})}listenDOM(t,n,a){this.domListeners[t]||(this.domListeners[t]=[]),this.domListeners[t].push({node:n,handler:a})}}H(de,"events",{EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SCROLL_EMBED_UPDATE:"scroll-embed-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",COMPOSITION_BEFORE_START:"composition-before-start",COMPOSITION_START:"composition-start",COMPOSITION_BEFORE_END:"composition-before-end",COMPOSITION_END:"composition-end"}),H(de,"sources",{API:"api",SILENT:"silent",USER:"user"});const Gi=U0("quill:selection");class Sn{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.index=t,this.length=n}}class Mw{constructor(t,n){this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new Sn(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,()=>{!this.mouseDown&&!this.composing&&setTimeout(this.update.bind(this,de.sources.USER),1)}),this.emitter.on(de.events.SCROLL_BEFORE_UPDATE,()=>{if(!this.hasFocus())return;const a=this.getNativeRange();a!=null&&a.start.node!==this.cursor.textNode&&this.emitter.once(de.events.SCROLL_UPDATE,(r,i)=>{try{this.root.contains(a.start.node)&&this.root.contains(a.end.node)&&this.setNativeRange(a.start.node,a.start.offset,a.end.node,a.end.offset);const s=i.some(l=>l.type==="characterData"||l.type==="childList"||l.type==="attributes"&&l.target===this.root);this.update(s?de.sources.SILENT:r)}catch{}})}),this.emitter.on(de.events.SCROLL_OPTIMIZE,(a,r)=>{if(r.range){const{startNode:i,startOffset:s,endNode:l,endOffset:c}=r.range;this.setNativeRange(i,s,l,c),this.update(de.sources.SILENT)}}),this.update(de.sources.SILENT)}handleComposition(){this.emitter.on(de.events.COMPOSITION_BEFORE_START,()=>{this.composing=!0}),this.emitter.on(de.events.COMPOSITION_END,()=>{if(this.composing=!1,this.cursor.parent){const t=this.cursor.restore();if(!t)return;setTimeout(()=>{this.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)},1)}})}handleDragging(){this.emitter.listenDOM("mousedown",document.body,()=>{this.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,()=>{this.mouseDown=!1,this.update(de.sources.USER)})}focus(){this.hasFocus()||(this.root.focus({preventScroll:!0}),this.setRange(this.savedRange))}format(t,n){this.scroll.update();const a=this.getNativeRange();if(!(a==null||!a.native.collapsed||this.scroll.query(t,fe.BLOCK))){if(a.start.node!==this.cursor.textNode){const r=this.scroll.find(a.start.node,!1);if(r==null)return;if(r instanceof _t){const i=r.split(a.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,a.start.node);this.cursor.attach()}this.cursor.format(t,n),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}getBounds(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const a=this.scroll.length();t=Math.min(t,a-1),n=Math.min(t+n,a-1)-t;let r,[i,s]=this.scroll.leaf(t);if(i==null)return null;if(n>0&&s===i.length()){const[d]=this.scroll.leaf(t+1);if(d){const[p]=this.scroll.line(t),[m]=this.scroll.line(t+1);p===m&&(i=d,s=0)}}[r,s]=i.position(s,!0);const l=document.createRange();if(n>0)return l.setStart(r,s),[i,s]=this.scroll.leaf(t+n),i==null?null:([r,s]=i.position(s,!0),l.setEnd(r,s),l.getBoundingClientRect());let c="left",u;if(r instanceof Text){if(!r.data.length)return null;s<r.data.length?(l.setStart(r,s),l.setEnd(r,s+1)):(l.setStart(r,s-1),l.setEnd(r,s),c="right"),u=l.getBoundingClientRect()}else{if(!(i.domNode instanceof Element))return null;u=i.domNode.getBoundingClientRect(),s>0&&(c="right")}return{bottom:u.top+u.height,height:u.height,left:u[c],right:u[c],top:u.top,width:0}}getNativeRange(){const t=document.getSelection();if(t==null||t.rangeCount<=0)return null;const n=t.getRangeAt(0);if(n==null)return null;const a=this.normalizeNative(n);return Gi.info("getNativeRange",a),a}getRange(){const t=this.scroll.domNode;if("isConnected"in t&&!t.isConnected)return[null,null];const n=this.getNativeRange();return n==null?[null,null]:[this.normalizedToRange(n),n]}hasFocus(){return document.activeElement===this.root||document.activeElement!=null&&Ki(this.root,document.activeElement)}normalizedToRange(t){const n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);const a=n.map(s=>{const[l,c]=s,u=this.scroll.find(l,!0),d=u.offset(this.scroll);return c===0?d:u instanceof _t?d+u.index(l,c):d+u.length()}),r=Math.min(Math.max(...a),this.scroll.length()-1),i=Math.min(r,...a);return new Sn(i,r-i)}normalizeNative(t){if(!Ki(this.root,t.startContainer)||!t.collapsed&&!Ki(this.root,t.endContainer))return null;const n={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[n.start,n.end].forEach(a=>{let{node:r,offset:i}=a;for(;!(r instanceof Text)&&r.childNodes.length>0;)if(r.childNodes.length>i)r=r.childNodes[i],i=0;else if(r.childNodes.length===i)r=r.lastChild,r instanceof Text?i=r.data.length:r.childNodes.length>0?i=r.childNodes.length:i=r.childNodes.length+1;else break;a.node=r,a.offset=i}),n}rangeToNative(t){const n=this.scroll.length(),a=(r,i)=>{r=Math.min(n-1,r);const[s,l]=this.scroll.leaf(r);return s?s.position(l,i):[null,-1]};return[...a(t.index,!1),...a(t.index+t.length,!0)]}setNativeRange(t,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Gi.info("setNativeRange",t,n,a,r),t!=null&&(this.root.parentNode==null||t.parentNode==null||a.parentNode==null))return;const s=document.getSelection();if(s!=null)if(t!=null){this.hasFocus()||this.root.focus({preventScroll:!0});const{native:l}=this.getNativeRange()||{};if(l==null||i||t!==l.startContainer||n!==l.startOffset||a!==l.endContainer||r!==l.endOffset){t instanceof Element&&t.tagName==="BR"&&(n=Array.from(t.parentNode.childNodes).indexOf(t),t=t.parentNode),a instanceof Element&&a.tagName==="BR"&&(r=Array.from(a.parentNode.childNodes).indexOf(a),a=a.parentNode);const c=document.createRange();c.setStart(t,n),c.setEnd(a,r),s.removeAllRanges(),s.addRange(c)}}else s.removeAllRanges(),this.root.blur()}setRange(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de.sources.API;if(typeof n=="string"&&(a=n,n=!1),Gi.info("setRange",t),t!=null){const r=this.rangeToNative(t);this.setNativeRange(...r,n)}else this.setNativeRange(null);this.update(a)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:de.sources.USER;const n=this.lastRange,[a,r]=this.getRange();if(this.lastRange=a,this.lastNative=r,this.lastRange!=null&&(this.savedRange=this.lastRange),!Gl(n,this.lastRange)){if(!this.composing&&r!=null&&r.native.collapsed&&r.start.node!==this.cursor.textNode){const s=this.cursor.restore();s&&this.setNativeRange(s.startNode,s.startOffset,s.endNode,s.endOffset)}const i=[de.events.SELECTION_CHANGE,Xn(this.lastRange),Xn(n),t];this.emitter.emit(de.events.EDITOR_CHANGE,...i),t!==de.sources.SILENT&&this.emitter.emit(...i)}}}function Ki(o,t){try{t.parentNode}catch{return!1}return o.contains(t)}const Fw=/^[ -~]*$/;class jw{constructor(t){this.scroll=t,this.delta=this.getDelta()}applyDelta(t){this.scroll.update();let n=this.scroll.length();this.scroll.batchStart();const a=zc(t),r=new me;return Uw(a.ops.slice()).reduce((s,l)=>{const c=Jt.Op.length(l);let u=l.attributes||{},d=!1,p=!1;if(l.insert!=null){if(r.retain(c),typeof l.insert=="string"){const h=l.insert;p=!h.endsWith(`
`)&&(n<=s||!!this.scroll.descendant(Yt,s)[0]),this.scroll.insertAt(s,h);const[y,g]=this.scroll.line(s);let C=tn({},Kt(y));if(y instanceof dt){const[x]=y.descendant(_t,g);x&&(C=tn(C,Kt(x)))}u=Jt.AttributeMap.diff(C,u)||{}}else if(typeof l.insert=="object"){const h=Object.keys(l.insert)[0];if(h==null)return s;const y=this.scroll.query(h,fe.INLINE)!=null;if(y)(n<=s||this.scroll.descendant(Yt,s)[0])&&(p=!0);else if(s>0){const[g,C]=this.scroll.descendant(_t,s-1);g instanceof m0?g.value()[C]!==`
`&&(d=!0):g instanceof Ut&&g.statics.scope===fe.INLINE_BLOT&&(d=!0)}if(this.scroll.insertAt(s,h,l.insert[h]),y){const[g]=this.scroll.descendant(_t,s);if(g){const C=tn({},Kt(g));u=Jt.AttributeMap.diff(C,u)||{}}}}n+=c}else if(r.push(l),l.retain!==null&&typeof l.retain=="object"){const h=Object.keys(l.retain)[0];if(h==null)return s;this.scroll.updateEmbedAt(s,h,l.retain[h])}Object.keys(u).forEach(h=>{this.scroll.formatAt(s,c,h,u[h])});const m=d?1:0,f=p?1:0;return n+=m+f,r.retain(m),r.delete(f),s+c+m+f},0),r.reduce((s,l)=>typeof l.delete=="number"?(this.scroll.deleteAt(s,l.delete),s):s+Jt.Op.length(l),0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(a)}deleteText(t,n){return this.scroll.deleteAt(t,n),this.update(new me().retain(t).delete(n))}formatLine(t,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.scroll.update(),Object.keys(a).forEach(i=>{this.scroll.lines(t,Math.max(n,1)).forEach(s=>{s.format(i,a[i])})}),this.scroll.optimize();const r=new me().retain(t).retain(n,Xn(a));return this.update(r)}formatText(t,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Object.keys(a).forEach(i=>{this.scroll.formatAt(t,n,i,a[i])});const r=new me().retain(t).retain(n,Xn(a));return this.update(r)}getContents(t,n){return this.delta.slice(t,t+n)}getDelta(){return this.scroll.lines().reduce((t,n)=>t.concat(n.delta()),new me)}getFormat(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=[],r=[];n===0?this.scroll.path(t).forEach(l=>{const[c]=l;c instanceof dt?a.push(c):c instanceof _t&&r.push(c)}):(a=this.scroll.lines(t,n),r=this.scroll.descendants(_t,t,n));const[i,s]=[a,r].map(l=>{const c=l.shift();if(c==null)return{};let u=Kt(c);for(;Object.keys(u).length>0;){const d=l.shift();if(d==null)return u;u=qw(Kt(d),u)}return u});return{...i,...s}}getHTML(t,n){const[a,r]=this.scroll.line(t);if(a){const i=a.length();return a.length()>=r+n&&!(r===0&&n===i)?Ho(a,r,n,!0):Ho(this.scroll,t,n,!0)}return""}getText(t,n){return this.getContents(t,n).filter(a=>typeof a.insert=="string").map(a=>a.insert).join("")}insertContents(t,n){const a=zc(n),r=new me().retain(t).concat(a);return this.scroll.insertContents(t,a),this.update(r)}insertEmbed(t,n,a){return this.scroll.insertAt(t,n,a),this.update(new me().retain(t).insert({[n]:a}))}insertText(t,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return n=n.replace(/\r\n/g,`
`).replace(/\r/g,`
`),this.scroll.insertAt(t,n),Object.keys(a).forEach(r=>{this.scroll.formatAt(t,n.length,r,a[r])}),this.update(new me().retain(t).insert(n,Xn(a)))}isBlank(){if(this.scroll.children.length===0)return!0;if(this.scroll.children.length>1)return!1;const t=this.scroll.children.head;if((t==null?void 0:t.statics.blotName)!==dt.blotName)return!1;const n=t;return n.children.length>1?!1:n.children.head instanceof v0}removeFormat(t,n){const a=this.getText(t,n),[r,i]=this.scroll.line(t+n);let s=0,l=new me;r!=null&&(s=r.length()-i,l=r.delta().slice(i,i+s-1).insert(`
`));const u=this.getContents(t,n+s).diff(new me().insert(a).concat(l)),d=new me().retain(t).concat(u);return this.applyDelta(d)}update(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;const r=this.delta;if(n.length===1&&n[0].type==="characterData"&&n[0].target.data.match(Fw)&&this.scroll.find(n[0].target)){const i=this.scroll.find(n[0].target),s=Kt(i),l=i.offset(this.scroll),c=n[0].oldValue.replace(ao.CONTENTS,""),u=new me().insert(c),d=new me().insert(i.value()),p=a&&{oldRange:Gc(a.oldRange,-l),newRange:Gc(a.newRange,-l)};t=new me().retain(l).concat(u.diff(d,p)).reduce((f,h)=>h.insert?f.insert(h.insert,s):f.push(h),new me),this.delta=r.compose(t)}else this.delta=this.getDelta(),(!t||!Gl(r.compose(t),this.delta))&&(t=r.diff(this.delta,a));return t}}function Gn(o,t,n){if(o.length===0){const[f]=Wi(n.pop());return t<=0?`</li></${f}>`:`</li></${f}>${Gn([],t-1,n)}`}const[{child:a,offset:r,length:i,indent:s,type:l},...c]=o,[u,d]=Wi(l);if(s>t)return n.push(l),s===t+1?`<${u}><li${d}>${Ho(a,r,i)}${Gn(c,s,n)}`:`<${u}><li>${Gn(o,t+1,n)}`;const p=n[n.length-1];if(s===t&&l===p)return`</li><li${d}>${Ho(a,r,i)}${Gn(c,s,n)}`;const[m]=Wi(n.pop());return`</li></${m}>${Gn(o,t-1,n)}`}function Ho(o,t,n){let a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if("html"in o&&typeof o.html=="function")return o.html(t,n);if(o instanceof m0)return Fr(o.value().slice(t,t+n));if(o instanceof d0){if(o.statics.blotName==="list-container"){const u=[];return o.children.forEachAt(t,n,(d,p,m)=>{const f="formats"in d&&typeof d.formats=="function"?d.formats():{};u.push({child:d,offset:p,length:m,indent:f.indent||0,type:f.list})}),Gn(u,-1,[])}const r=[];if(o.children.forEachAt(t,n,(u,d,p)=>{r.push(Ho(u,d,p))}),a||o.statics.blotName==="list")return r.join("");const{outerHTML:i,innerHTML:s}=o.domNode,[l,c]=i.split(`>${s}<`);return l==="<table"?`<table style="border: 1px solid #000;">${r.join("")}<${c}`:`${l}>${r.join("")}<${c}`}return o.domNode instanceof Element?o.domNode.outerHTML:""}function qw(o,t){return Object.keys(t).reduce((n,a)=>{if(o[a]==null)return n;const r=t[a];return r===o[a]?n[a]=r:Array.isArray(r)?r.indexOf(o[a])<0?n[a]=r.concat([o[a]]):n[a]=r:n[a]=[r,o[a]],n},{})}function Wi(o){const t=o==="ordered"?"ol":"ul";switch(o){case"checked":return[t,' data-list="checked"'];case"unchecked":return[t,' data-list="unchecked"'];default:return[t,""]}}function zc(o){return o.reduce((t,n)=>{if(typeof n.insert=="string"){const a=n.insert.replace(/\r\n/g,`
`).replace(/\r/g,`
`);return t.insert(a,n.attributes)}return t.push(n)},new me)}function Gc(o,t){let{index:n,length:a}=o;return new Sn(n+t,a)}function Uw(o){const t=[];return o.forEach(n=>{typeof n.insert=="string"?n.insert.split(`
`).forEach((r,i)=>{i&&t.push({insert:`
`,attributes:n.attributes}),r&&t.push({insert:r,attributes:n.attributes})}):t.push(n)}),t}class g0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.quill=t,this.options=n}}H(g0,"DEFAULTS",{});const Ra="\uFEFF";class e1 extends Ut{constructor(t,n){super(t,n),this.contentNode=document.createElement("span"),this.contentNode.setAttribute("contenteditable","false"),Array.from(this.domNode.childNodes).forEach(a=>{this.contentNode.appendChild(a)}),this.leftGuard=document.createTextNode(Ra),this.rightGuard=document.createTextNode(Ra),this.domNode.appendChild(this.leftGuard),this.domNode.appendChild(this.contentNode),this.domNode.appendChild(this.rightGuard)}index(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:super.index(t,n)}restore(t){let n=null,a;const r=t.data.split(Ra).join("");if(t===this.leftGuard)if(this.prev instanceof m0){const i=this.prev.length();this.prev.insertAt(i,r),n={startNode:this.prev.domNode,startOffset:i+r.length}}else a=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(a),this),n={startNode:a,startOffset:r.length};else t===this.rightGuard&&(this.next instanceof m0?(this.next.insertAt(0,r),n={startNode:this.next.domNode,startOffset:r.length}):(a=document.createTextNode(r),this.parent.insertBefore(this.scroll.create(a),this.next),n={startNode:a,startOffset:r.length}));return t.data=Ra,n}update(t,n){t.forEach(a=>{if(a.type==="characterData"&&(a.target===this.leftGuard||a.target===this.rightGuard)){const r=this.restore(a.target);r&&(n.range=r)}})}}class Hw{constructor(t,n){H(this,"isComposing",!1);this.scroll=t,this.emitter=n,this.setupListeners()}setupListeners(){this.scroll.domNode.addEventListener("compositionstart",t=>{this.isComposing||this.handleCompositionStart(t)}),this.scroll.domNode.addEventListener("compositionend",t=>{this.isComposing&&queueMicrotask(()=>{this.handleCompositionEnd(t)})})}handleCompositionStart(t){const n=t.target instanceof Node?this.scroll.find(t.target,!0):null;n&&!(n instanceof e1)&&(this.emitter.emit(de.events.COMPOSITION_BEFORE_START,t),this.scroll.batchStart(),this.emitter.emit(de.events.COMPOSITION_START,t),this.isComposing=!0)}handleCompositionEnd(t){this.emitter.emit(de.events.COMPOSITION_BEFORE_END,t),this.scroll.batchEnd(),this.emitter.emit(de.events.COMPOSITION_END,t),this.isComposing=!1}}const $o=class $o{constructor(t,n){H(this,"modules",{});this.quill=t,this.options=n}init(){Object.keys(this.options.modules).forEach(t=>{this.modules[t]==null&&this.addModule(t)})}addModule(t){const n=this.quill.constructor.import(`modules/${t}`);return this.modules[t]=new n(this.quill,this.options.modules[t]||{}),this.modules[t]}};H($o,"DEFAULTS",{modules:{}}),H($o,"themes",{default:$o});let ro=$o;const Zw=o=>o.parentElement||o.getRootNode().host||null,zw=o=>{const t=o.getBoundingClientRect(),n="offsetWidth"in o&&Math.abs(t.width)/o.offsetWidth||1,a="offsetHeight"in o&&Math.abs(t.height)/o.offsetHeight||1;return{top:t.top,right:t.left+o.clientWidth*n,bottom:t.top+o.clientHeight*a,left:t.left}},Ia=o=>{const t=parseInt(o,10);return Number.isNaN(t)?0:t},Kc=(o,t,n,a,r,i)=>o<n&&t>a?0:o<n?-(n-o+r):t>a?t-o>a-n?o+r-n:t-a+i:0,Gw=(o,t)=>{var i,s,l;const n=o.ownerDocument;let a=t,r=o;for(;r;){const c=r===n.body,u=c?{top:0,right:((i=window.visualViewport)==null?void 0:i.width)??n.documentElement.clientWidth,bottom:((s=window.visualViewport)==null?void 0:s.height)??n.documentElement.clientHeight,left:0}:zw(r),d=getComputedStyle(r),p=Kc(a.left,a.right,u.left,u.right,Ia(d.scrollPaddingLeft),Ia(d.scrollPaddingRight)),m=Kc(a.top,a.bottom,u.top,u.bottom,Ia(d.scrollPaddingTop),Ia(d.scrollPaddingBottom));if(p||m)if(c)(l=n.defaultView)==null||l.scrollBy(p,m);else{const{scrollLeft:f,scrollTop:h}=r;m&&(r.scrollTop+=m),p&&(r.scrollLeft+=p);const y=r.scrollLeft-f,g=r.scrollTop-h;a={left:a.left-y,top:a.top-g,right:a.right-y,bottom:a.bottom-g}}r=c||d.position==="fixed"?null:Zw(r)}},Kw=100,Ww=["block","break","cursor","inline","scroll","text"],Yw=(o,t,n)=>{const a=new oo;return Ww.forEach(r=>{const i=t.query(r);i&&a.register(i)}),o.forEach(r=>{let i=t.query(r);i||n.error(`Cannot register "${r}" specified in "formats" config. Are you sure it was registered?`);let s=0;for(;i;)if(a.register(i),i="blotName"in i?i.requiredContainer??null:null,s+=1,s>Kw){n.error(`Cycle detected in registering blot requiredContainer: "${r}"`);break}}),a},eo=U0("quill"),Oa=new oo;d0.uiClass="ql-ui";const s0=class s0{static debug(t){t===!0&&(t="log"),U0.level(t)}static find(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Ps.get(t)||Oa.find(t,n)}static import(t){return this.imports[t]==null&&eo.error(`Cannot import ${t}. Are you sure it was registered?`),this.imports[t]}static register(t,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof t!="string"){const r="attrName"in t?t.attrName:t.blotName;typeof r=="string"?this.register(`formats/${r}`,t,n):Object.keys(t).forEach(i=>{this.register(i,t[i],n)})}else this.imports[t]!=null&&!a&&eo.warn(`Overwriting ${t} with`,n),this.imports[t]=n,(t.startsWith("blots/")||t.startsWith("formats/"))&&n&&typeof n!="boolean"&&n.blotName!=="abstract"&&Oa.register(n),typeof n.register=="function"&&n.register(Oa)}constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.options=Jw(t,n),this.container=this.options.container,this.container==null){eo.error("Invalid Quill container",t);return}this.options.debug&&s0.debug(this.options.debug);const a=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",Ps.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.emitter=new de;const r=Wl.blotName,i=this.options.registry.query(r);if(!i||!("blotName"in i))throw new Error(`Cannot initialize Quill without "${r}" blot`);if(this.scroll=new i(this.options.registry,this.root,{emitter:this.emitter}),this.editor=new jw(this.scroll),this.selection=new Mw(this.scroll,this.emitter),this.composition=new Hw(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.addModule("input"),this.theme.addModule("uiNode"),this.theme.init(),this.emitter.on(de.events.EDITOR_CHANGE,s=>{s===de.events.TEXT_CHANGE&&this.root.classList.toggle("ql-blank",this.editor.isBlank())}),this.emitter.on(de.events.SCROLL_UPDATE,(s,l)=>{const c=this.selection.lastRange,[u]=this.selection.getRange(),d=c&&u?{oldRange:c,newRange:u}:void 0;i0.call(this,()=>this.editor.update(null,l,d),s)}),this.emitter.on(de.events.SCROLL_EMBED_UPDATE,(s,l)=>{const c=this.selection.lastRange,[u]=this.selection.getRange(),d=c&&u?{oldRange:c,newRange:u}:void 0;i0.call(this,()=>{const p=new me().retain(s.offset(this)).retain({[s.statics.blotName]:l});return this.editor.update(p,[],d)},s0.sources.USER)}),a){const s=this.clipboard.convert({html:`${a}<p><br></p>`,text:`
`});this.setContents(s)}this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}addContainer(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof t=="string"){const a=t;t=document.createElement("div"),t.classList.add(a)}return this.container.insertBefore(t,n),t}blur(){this.selection.setRange(null)}deleteText(t,n,a){return[t,n,,a]=$0(t,n,a),i0.call(this,()=>this.editor.deleteText(t,n),a,t,-1*n)}disable(){this.enable(!1)}editReadOnly(t){this.allowReadOnlyEdits=!0;const n=t();return this.allowReadOnlyEdits=!1,n}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}focus(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.selection.focus(),t.preventScroll||this.scrollSelectionIntoView()}format(t,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de.sources.API;return i0.call(this,()=>{const r=this.getSelection(!0);let i=new me;if(r==null)return i;if(this.scroll.query(t,fe.BLOCK))i=this.editor.formatLine(r.index,r.length,{[t]:n});else{if(r.length===0)return this.selection.format(t,n),i;i=this.editor.formatText(r.index,r.length,{[t]:n})}return this.setSelection(r,de.sources.SILENT),i},a)}formatLine(t,n,a,r,i){let s;return[t,n,s,i]=$0(t,n,a,r,i),i0.call(this,()=>this.editor.formatLine(t,n,s),i,t,0)}formatText(t,n,a,r,i){let s;return[t,n,s,i]=$0(t,n,a,r,i),i0.call(this,()=>this.editor.formatText(t,n,s),i,t,0)}getBounds(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=null;if(typeof t=="number"?a=this.selection.getBounds(t,n):a=this.selection.getBounds(t.index,t.length),!a)return null;const r=this.container.getBoundingClientRect();return{bottom:a.bottom-r.top,height:a.height,left:a.left-r.left,right:a.right-r.left,top:a.top-r.top,width:a.width}}getContents(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-t;return[t,n]=$0(t,n),this.editor.getContents(t,n)}getFormat(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof t=="number"?this.editor.getFormat(t,n):this.editor.getFormat(t.index,t.length)}getIndex(t){return t.offset(this.scroll)}getLength(){return this.scroll.length()}getLeaf(t){return this.scroll.leaf(t)}getLine(t){return this.scroll.line(t)}getLines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof t!="number"?this.scroll.lines(t.index,t.length):this.scroll.lines(t,n)}getModule(t){return this.theme.modules[t]}getSelection(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)&&this.focus(),this.update(),this.selection.getRange()[0]}getSemanticHTML(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(n=n??this.getLength()-t),[t,n]=$0(t,n),this.editor.getHTML(t,n)}getText(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1?arguments[1]:void 0;return typeof t=="number"&&(n=n??this.getLength()-t),[t,n]=$0(t,n),this.editor.getText(t,n)}hasFocus(){return this.selection.hasFocus()}insertEmbed(t,n,a){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:s0.sources.API;return i0.call(this,()=>this.editor.insertEmbed(t,n,a),r,t)}insertText(t,n,a,r,i){let s;return[t,,s,i]=$0(t,0,a,r,i),i0.call(this,()=>this.editor.insertText(t,n,s),i,t,n.length)}isEnabled(){return this.scroll.isEnabled()}off(){return this.emitter.off(...arguments)}on(){return this.emitter.on(...arguments)}once(){return this.emitter.once(...arguments)}removeFormat(){const[t,n,,a]=$0(...arguments);return i0.call(this,()=>this.editor.removeFormat(t,n),a,t)}scrollRectIntoView(t){Gw(this.root,t)}scrollIntoView(){console.warn("Quill#scrollIntoView() has been deprecated and will be removed in the near future. Please use Quill#scrollSelectionIntoView() instead."),this.scrollSelectionIntoView()}scrollSelectionIntoView(){const t=this.selection.lastRange,n=t&&this.selection.getBounds(t.index,t.length);n&&this.scrollRectIntoView(n)}setContents(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de.sources.API;return i0.call(this,()=>{t=new me(t);const a=this.getLength(),r=this.editor.deleteText(0,a),i=this.editor.insertContents(0,t),s=this.editor.deleteText(this.getLength()-1,1);return r.compose(i).compose(s)},n)}setSelection(t,n,a){t==null?this.selection.setRange(null,n||s0.sources.API):([t,n,,a]=$0(t,n,a),this.selection.setRange(new Sn(Math.max(0,t),n),a),a!==de.sources.SILENT&&this.scrollSelectionIntoView())}setText(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de.sources.API;const a=new me().insert(t);return this.setContents(a,n)}update(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:de.sources.USER;const n=this.scroll.update(t);return this.selection.update(t),n}updateContents(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:de.sources.API;return i0.call(this,()=>(t=new me(t),this.editor.applyDelta(t)),n,!0)}};H(s0,"DEFAULTS",{bounds:null,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0},placeholder:"",readOnly:!1,registry:Oa,theme:"default"}),H(s0,"events",de.events),H(s0,"sources",de.sources),H(s0,"version","2.0.0-rc.4"),H(s0,"imports",{delta:me,parchment:Cw,"core/module":g0,"core/theme":ro});let X=s0;function Wc(o){return typeof o=="string"?document.querySelector(o):o}function Yi(o){return Object.entries(o??{}).reduce((t,n)=>{let[a,r]=n;return{...t,[a]:r===!0?{}:r}},{})}function Yc(o){return Object.fromEntries(Object.entries(o).filter(t=>t[1]!==void 0))}function Jw(o,t){const n=Wc(o);if(!n)throw new Error("Invalid Quill container");const r=!t.theme||t.theme===X.DEFAULTS.theme?ro:X.import(`themes/${t.theme}`);if(!r)throw new Error(`Invalid theme ${t.theme}. Did you register it?`);const{modules:i,...s}=X.DEFAULTS,{modules:l,...c}=r.DEFAULTS,u=tn({},Yi(i),Yi(l),Yi(t.modules));u!=null&&u.toolbar&&u.toolbar.constructor!==Object&&(u.toolbar={container:u.toolbar});const d={...s,...Yc(c),...Yc(t)};let p=t.registry;return p?t.formats&&eo.warn('Ignoring "formats" option because "registry" is specified'):p=t.formats?Yw(t.formats,d.registry,eo):d.registry,{...d,registry:p,container:n,theme:r,modules:Object.entries(u).reduce((m,f)=>{let[h,y]=f;if(!y)return m;const g=X.import(`modules/${h}`);return g==null?(eo.error(`Cannot load ${h} module. Are you sure you registered it?`),m):{...m,[h]:tn({},g.DEFAULTS||{},y)}},{}),bounds:Wc(d.bounds)}}function i0(o,t,n,a){if(!this.isEnabled()&&t===de.sources.USER&&!this.allowReadOnlyEdits)return new me;let r=n==null?null:this.getSelection();const i=this.editor.delta,s=o();if(r!=null&&(n===!0&&(n=r.index),a==null?r=Jc(r,s,t):a!==0&&(r=Jc(r,n,a,t)),this.setSelection(r,de.sources.SILENT)),s.length()>0){const l=[de.events.TEXT_CHANGE,s,i,t];this.emitter.emit(de.events.EDITOR_CHANGE,...l),t!==de.sources.SILENT&&this.emitter.emit(...l)}return s}function $0(o,t,n,a,r){let i={};return typeof o.index=="number"&&typeof o.length=="number"?typeof t!="number"?(r=a,a=n,n=t,t=o.length,o=o.index):(t=o.length,o=o.index):typeof t!="number"&&(r=a,a=n,n=t,t=0),typeof n=="object"?(i=n,r=a):typeof n=="string"&&(a!=null?i[n]=a:r=n),r=r||de.sources.API,[o,t,i,r]}function Jc(o,t,n,a){const r=typeof n=="number"?n:0;if(o==null)return null;let i,s;return t&&typeof t.transformPosition=="function"?[i,s]=[o.index,o.index+o.length].map(l=>t.transformPosition(l,a!==de.sources.USER)):[i,s]=[o.index,o.index+o.length].map(l=>l<t||l===t&&a===de.sources.USER?l:r>=0?l+r:Math.max(t,l+r)),new Sn(i,s-i)}class Rn extends Lr{}function Xc(o){return o instanceof dt||o instanceof Yt}function Qc(o){return typeof o.updateContent=="function"}class Kn extends Wl{constructor(t,n,a){let{emitter:r}=a;super(t,n),this.emitter=r,this.batch=!1,this.optimize(),this.enable(),this.domNode.addEventListener("dragstart",i=>this.handleDragStart(i))}batchStart(){Array.isArray(this.batch)||(this.batch=[])}batchEnd(){if(!this.batch)return;const t=this.batch;this.batch=!1,this.update(t)}emitMount(t){this.emitter.emit(de.events.SCROLL_BLOT_MOUNT,t)}emitUnmount(t){this.emitter.emit(de.events.SCROLL_BLOT_UNMOUNT,t)}emitEmbedUpdate(t,n){this.emitter.emit(de.events.SCROLL_EMBED_UPDATE,t,n)}deleteAt(t,n){const[a,r]=this.line(t),[i]=this.line(t+n);if(super.deleteAt(t,n),i!=null&&a!==i&&r>0){if(a instanceof Yt||i instanceof Yt){this.optimize();return}const s=i.children.head instanceof v0?null:i.children.head;a.moveChildren(i,s),a.remove()}this.optimize()}enable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",t?"true":"false")}formatAt(t,n,a,r){super.formatAt(t,n,a,r),this.optimize()}insertAt(t,n,a){if(t>=this.length())if(a==null||this.scroll.query(n,fe.BLOCK)==null){const r=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(r),a==null&&n.endsWith(`
`)?r.insertAt(0,n.slice(0,-1),a):r.insertAt(0,n,a)}else{const r=this.scroll.create(n,a);this.appendChild(r)}else super.insertAt(t,n,a);this.optimize()}insertBefore(t,n){if(t.statics.scope===fe.INLINE_BLOT){const a=this.scroll.create(this.statics.defaultChild.blotName);a.appendChild(t),super.insertBefore(a,n)}else super.insertBefore(t,n)}insertContents(t,n){const a=this.deltaToRenderBlocks(n.concat(new me().insert(`
`))),r=a.pop();if(r==null)return;this.batchStart();const i=a.shift();if(i){const c=i.type==="block"&&(i.delta.length()===0||!this.descendant(Yt,t)[0]&&t<this.length()),u=i.type==="block"?i.delta:new me().insert({[i.key]:i.value});Ji(this,t,u);const d=i.type==="block"?1:0,p=t+u.length()+d;c&&this.insertAt(p-1,`
`);const m=Kt(this.line(t)[0]),f=Jt.AttributeMap.diff(m,i.attributes)||{};Object.keys(f).forEach(h=>{this.formatAt(p-1,1,h,f[h])}),t=p}let[s,l]=this.children.find(t);if(a.length&&(s&&(s=s.split(l),l=0),a.forEach(c=>{if(c.type==="block"){const u=this.createBlock(c.attributes,s||void 0);Ji(u,0,c.delta)}else{const u=this.create(c.key,c.value);this.insertBefore(u,s||void 0),Object.keys(c.attributes).forEach(d=>{u.format(d,c.attributes[d])})}})),r.type==="block"&&r.delta.length()){const c=s?s.offset(s.scroll)+l:this.length();Ji(this,c,r.delta)}this.batchEnd(),this.optimize()}isEnabled(){return this.domNode.getAttribute("contenteditable")==="true"}leaf(t){const n=this.path(t).pop();if(!n)return[null,-1];const[a,r]=n;return a instanceof _t?[a,r]:[null,-1]}line(t){return t===this.length()?this.line(t-1):this.descendant(Xc,t)}lines(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;const a=(r,i,s)=>{let l=[],c=s;return r.children.forEachAt(i,s,(u,d,p)=>{Xc(u)?l.push(u):u instanceof Lr&&(l=l.concat(a(u,d,c))),c-=p}),l};return a(this,t,n)}optimize(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch||(super.optimize(t,n),t.length>0&&this.emitter.emit(de.events.SCROLL_OPTIMIZE,t,n))}path(t){return super.path(t).slice(1)}remove(){}update(t){if(this.batch){Array.isArray(t)&&(this.batch=this.batch.concat(t));return}let n=de.sources.USER;typeof t=="string"&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t=t.filter(a=>{let{target:r}=a;const i=this.find(r,!0);return i&&!Qc(i)}),t.length>0&&this.emitter.emit(de.events.SCROLL_BEFORE_UPDATE,n,t),super.update(t.concat([])),t.length>0&&this.emitter.emit(de.events.SCROLL_UPDATE,n,t)}updateEmbedAt(t,n,a){const[r]=this.descendant(i=>i instanceof Yt,t);r&&r.statics.blotName===n&&Qc(r)&&r.updateContent(a)}handleDragStart(t){t.preventDefault()}deltaToRenderBlocks(t){const n=[];let a=new me;return t.forEach(r=>{const i=r==null?void 0:r.insert;if(i)if(typeof i=="string"){const s=i.split(`
`);s.slice(0,-1).forEach(c=>{a.insert(c,r.attributes),n.push({type:"block",delta:a,attributes:r.attributes??{}}),a=new me});const l=s[s.length-1];l&&a.insert(l,r.attributes)}else{const s=Object.keys(i)[0];if(!s)return;this.query(s,fe.INLINE)?a.push(r):(a.length()&&n.push({type:"block",delta:a,attributes:{}}),a=new me,n.push({type:"blockEmbed",key:s,value:i[s],attributes:r.attributes??{}}))}}),a.length()&&n.push({type:"block",delta:a,attributes:{}}),n}createBlock(t,n){let a;const r={};Object.entries(t).forEach(l=>{let[c,u]=l;this.query(c,fe.BLOCK&fe.BLOT)!=null?a=c:r[c]=u});const i=this.create(a||this.statics.defaultChild.blotName,a?t[a]:void 0);this.insertBefore(i,n||void 0);const s=i.length();return Object.entries(r).forEach(l=>{let[c,u]=l;i.formatAt(0,s,c,u)}),i}}H(Kn,"blotName","scroll"),H(Kn,"className","ql-editor"),H(Kn,"tagName","DIV"),H(Kn,"defaultChild",dt),H(Kn,"allowedChildren",[dt,Yt,Rn]);function Ji(o,t,n){n.reduce((a,r)=>{const i=Jt.Op.length(r);let s=r.attributes||{};if(r.insert!=null){if(typeof r.insert=="string"){const l=r.insert;o.insertAt(a,l);const[c]=o.descendant(_t,a),u=Kt(c);s=Jt.AttributeMap.diff(u,s)||{}}else if(typeof r.insert=="object"){const l=Object.keys(r.insert)[0];if(l==null)return a;if(o.insertAt(a,l,r.insert[l]),o.scroll.query(l,fe.INLINE)!=null){const[u]=o.descendant(_t,a),d=Kt(u);s=Jt.AttributeMap.diff(d,s)||{}}}}return Object.keys(s).forEach(l=>{o.formatAt(a,i,l,s[l])}),a+i},t)}const t1={scope:fe.BLOCK,whitelist:["right","center","justify"]},Xw=new k0("align","align",t1),r3=new h0("align","ql-align",t1),i3=new cn("align","text-align",t1);class s3 extends cn{value(t){let n=super.value(t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),`#${n.split(",").map(r=>`00${parseInt(r,10).toString(16)}`.slice(-2)).join("")}`):n}}const Qw=new h0("color","ql-color",{scope:fe.INLINE}),n1=new s3("color","color",{scope:fe.INLINE}),eC=new h0("background","ql-bg",{scope:fe.INLINE}),o1=new s3("background","background-color",{scope:fe.INLINE});class In extends Rn{static create(t){const n=super.create(t);return n.setAttribute("spellcheck","false"),n}code(t,n){return this.children.map(a=>a.length()<=1?"":a.domNode.innerText).join(`
`).slice(t,t+n)}html(t,n){return`<pre>
${Fr(this.code(t,n))}
</pre>`}}class Nt extends dt{static register(){X.register(In)}}H(Nt,"TAB","  ");class a1 extends x0{}a1.blotName="code";a1.tagName="CODE";Nt.blotName="code-block";Nt.className="ql-code-block";Nt.tagName="DIV";In.blotName="code-block-container";In.className="ql-code-block-container";In.tagName="DIV";In.allowedChildren=[Nt];Nt.allowedChildren=[m0,v0,ao];Nt.requiredContainer=In;const r1={scope:fe.BLOCK,whitelist:["rtl"]},l3=new k0("direction","dir",r1),c3=new h0("direction","ql-direction",r1),u3=new cn("direction","direction",r1),d3={scope:fe.INLINE,whitelist:["serif","monospace"]},p3=new h0("font","ql-font",d3);class tC extends cn{value(t){return super.value(t).replace(/["']/g,"")}}const m3=new tC("font","font-family",d3),f3=new h0("size","ql-size",{scope:fe.INLINE,whitelist:["small","large","huge"]}),h3=new cn("size","font-size",{scope:fe.INLINE,whitelist:["10px","18px","32px"]}),nC=U0("quill:keyboard"),oC=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey";class jr extends g0{static match(t,n){return["altKey","ctrlKey","metaKey","shiftKey"].some(a=>!!n[a]!==t[a]&&n[a]!==null)?!1:n.key===t.key||n.key===t.which}constructor(t,n){super(t,n),this.bindings={},Object.keys(this.options.bindings).forEach(a=>{this.options.bindings[a]&&this.addBinding(this.options.bindings[a])}),this.addBinding({key:"Enter",shiftKey:null},this.handleEnter),this.addBinding({key:"Enter",metaKey:null,ctrlKey:null,altKey:null},()=>{}),/Firefox/i.test(navigator.userAgent)?(this.addBinding({key:"Backspace"},{collapsed:!0},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0},this.handleDelete)):(this.addBinding({key:"Backspace"},{collapsed:!0,prefix:/^.?$/},this.handleBackspace),this.addBinding({key:"Delete"},{collapsed:!0,suffix:/^.?$/},this.handleDelete)),this.addBinding({key:"Backspace"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Delete"},{collapsed:!1},this.handleDeleteRange),this.addBinding({key:"Backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},this.handleBackspace),this.listen()}addBinding(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const r=rC(t);if(r==null){nC.warn("Attempted to add invalid keyboard binding",r);return}typeof n=="function"&&(n={handler:n}),typeof a=="function"&&(a={handler:a}),(Array.isArray(r.key)?r.key:[r.key]).forEach(s=>{const l={...r,key:s,...n,...a};this.bindings[l.key]=this.bindings[l.key]||[],this.bindings[l.key].push(l)})}listen(){this.quill.root.addEventListener("keydown",t=>{if(t.defaultPrevented||t.isComposing)return;const a=(this.bindings[t.key]||[]).concat(this.bindings[t.which]||[]).filter(g=>jr.match(t,g));if(a.length===0)return;const r=X.find(t.target,!0);if(r&&r.scroll!==this.quill.scroll)return;const i=this.quill.getSelection();if(i==null||!this.quill.hasFocus())return;const[s,l]=this.quill.getLine(i.index),[c,u]=this.quill.getLeaf(i.index),[d,p]=i.length===0?[c,u]:this.quill.getLeaf(i.index+i.length),m=c instanceof or?c.value().slice(0,u):"",f=d instanceof or?d.value().slice(p):"",h={collapsed:i.length===0,empty:i.length===0&&s.length()<=1,format:this.quill.getFormat(i),line:s,offset:l,prefix:m,suffix:f,event:t};a.some(g=>{if(g.collapsed!=null&&g.collapsed!==h.collapsed||g.empty!=null&&g.empty!==h.empty||g.offset!=null&&g.offset!==h.offset)return!1;if(Array.isArray(g.format)){if(g.format.every(C=>h.format[C]==null))return!1}else if(typeof g.format=="object"&&!Object.keys(g.format).every(C=>g.format[C]===!0?h.format[C]!=null:g.format[C]===!1?h.format[C]==null:Gl(g.format[C],h.format[C])))return!1;return g.prefix!=null&&!g.prefix.test(h.prefix)||g.suffix!=null&&!g.suffix.test(h.suffix)?!1:g.handler.call(this,i,h,g)!==!0})&&t.preventDefault()})}handleBackspace(t,n){const a=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(n.prefix)?2:1;if(t.index===0||this.quill.getLength()<=1)return;let r={};const[i]=this.quill.getLine(t.index);let s=new me().retain(t.index-a).delete(a);if(n.offset===0){const[l]=this.quill.getLine(t.index-1);if(l&&!(l.statics.blotName==="block"&&l.length()<=1)){const u=i.formats(),d=this.quill.getFormat(t.index-1,1);if(r=Jt.AttributeMap.diff(u,d)||{},Object.keys(r).length>0){const p=new me().retain(t.index+i.length()-2).retain(1,r);s=s.compose(p)}}}this.quill.updateContents(s,X.sources.USER),this.quill.focus()}handleDelete(t,n){const a=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(n.suffix)?2:1;if(t.index>=this.quill.getLength()-a)return;let r={};const[i]=this.quill.getLine(t.index);let s=new me().retain(t.index).delete(a);if(n.offset>=i.length()-1){const[l]=this.quill.getLine(t.index+1);if(l){const c=i.formats(),u=this.quill.getFormat(t.index,1);r=Jt.AttributeMap.diff(c,u)||{},Object.keys(r).length>0&&(s=s.retain(l.length()-1).retain(1,r))}}this.quill.updateContents(s,X.sources.USER),this.quill.focus()}handleDeleteRange(t){i1({range:t,quill:this.quill}),this.quill.focus()}handleEnter(t,n){const a=Object.keys(n.format).reduce((i,s)=>(this.quill.scroll.query(s,fe.BLOCK)&&!Array.isArray(n.format[s])&&(i[s]=n.format[s]),i),{}),r=new me().retain(t.index).delete(t.length).insert(`
`,a);this.quill.updateContents(r,X.sources.USER),this.quill.setSelection(t.index+1,X.sources.SILENT),this.quill.focus()}}const aC={bindings:{bold:Xi("bold"),italic:Xi("italic"),underline:Xi("underline"),indent:{key:"Tab",format:["blockquote","indent","list"],handler(o,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","+1",X.sources.USER),!1)}},outdent:{key:"Tab",shiftKey:!0,format:["blockquote","indent","list"],handler(o,t){return t.collapsed&&t.offset!==0?!0:(this.quill.format("indent","-1",X.sources.USER),!1)}},"outdent backspace":{key:"Backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler(o,t){t.format.indent!=null?this.quill.format("indent","-1",X.sources.USER):t.format.list!=null&&this.quill.format("list",!1,X.sources.USER)}},"indent code-block":eu(!0),"outdent code-block":eu(!1),"remove tab":{key:"Tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler(o){this.quill.deleteText(o.index-1,1,X.sources.USER)}},tab:{key:"Tab",handler(o,t){if(t.format.table)return!0;this.quill.history.cutoff();const n=new me().retain(o.index).delete(o.length).insert("	");return this.quill.updateContents(n,X.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(o.index+1,X.sources.SILENT),!1}},"blockquote empty enter":{key:"Enter",collapsed:!0,format:["blockquote"],empty:!0,handler(){this.quill.format("blockquote",!1,X.sources.USER)}},"list empty enter":{key:"Enter",collapsed:!0,format:["list"],empty:!0,handler(o,t){const n={list:!1};t.format.indent&&(n.indent=!1),this.quill.formatLine(o.index,o.length,n,X.sources.USER)}},"checklist enter":{key:"Enter",collapsed:!0,format:{list:"checked"},handler(o){const[t,n]=this.quill.getLine(o.index),a={...t.formats(),list:"checked"},r=new me().retain(o.index).insert(`
`,a).retain(t.length()-n-1).retain(1,{list:"unchecked"});this.quill.updateContents(r,X.sources.USER),this.quill.setSelection(o.index+1,X.sources.SILENT),this.quill.scrollSelectionIntoView()}},"header enter":{key:"Enter",collapsed:!0,format:["header"],suffix:/^$/,handler(o,t){const[n,a]=this.quill.getLine(o.index),r=new me().retain(o.index).insert(`
`,t.format).retain(n.length()-a-1).retain(1,{header:null});this.quill.updateContents(r,X.sources.USER),this.quill.setSelection(o.index+1,X.sources.SILENT),this.quill.scrollSelectionIntoView()}},"table backspace":{key:"Backspace",format:["table"],collapsed:!0,offset:0,handler(){}},"table delete":{key:"Delete",format:["table"],collapsed:!0,suffix:/^$/,handler(){}},"table enter":{key:"Enter",shiftKey:null,format:["table"],handler(o){const t=this.quill.getModule("table");if(t){const[n,a,r,i]=t.getTable(o),s=iC(n,a,r,i);if(s==null)return;let l=n.offset();if(s<0){const c=new me().retain(l).insert(`
`);this.quill.updateContents(c,X.sources.USER),this.quill.setSelection(o.index+1,o.length,X.sources.SILENT)}else if(s>0){l+=n.length();const c=new me().retain(l).insert(`
`);this.quill.updateContents(c,X.sources.USER),this.quill.setSelection(l,X.sources.USER)}}}},"table tab":{key:"Tab",shiftKey:null,format:["table"],handler(o,t){const{event:n,line:a}=t,r=a.offset(this.quill.scroll);n.shiftKey?this.quill.setSelection(r-1,X.sources.USER):this.quill.setSelection(r+a.length(),X.sources.USER)}},"list autofill":{key:" ",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler(o,t){if(this.quill.scroll.query("list")==null)return!0;const{length:n}=t.prefix,[a,r]=this.quill.getLine(o.index);if(r>n)return!0;let i;switch(t.prefix.trim()){case"[]":case"[ ]":i="unchecked";break;case"[x]":i="checked";break;case"-":case"*":i="bullet";break;default:i="ordered"}this.quill.insertText(o.index," ",X.sources.USER),this.quill.history.cutoff();const s=new me().retain(o.index-r).delete(n+1).retain(a.length()-2-r).retain(1,{list:i});return this.quill.updateContents(s,X.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(o.index-n,X.sources.SILENT),!1}},"code exit":{key:"Enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler(o){const[t,n]=this.quill.getLine(o.index);let a=2,r=t;for(;r!=null&&r.length()<=1&&r.formats()["code-block"];)if(r=r.prev,a-=1,a<=0){const i=new me().retain(o.index+t.length()-n-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(i,X.sources.USER),this.quill.setSelection(o.index-1,X.sources.SILENT),!1}return!0}},"embed left":$a("ArrowLeft",!1),"embed left shift":$a("ArrowLeft",!0),"embed right":$a("ArrowRight",!1),"embed right shift":$a("ArrowRight",!0),"table down":tu(!1),"table up":tu(!0)}};jr.DEFAULTS=aC;function eu(o){return{key:"Tab",shiftKey:!o,format:{"code-block":!0},handler(t,n){let{event:a}=n;const r=this.quill.scroll.query("code-block"),{TAB:i}=r;if(t.length===0&&!a.shiftKey){this.quill.insertText(t.index,i,X.sources.USER),this.quill.setSelection(t.index+i.length,X.sources.SILENT);return}const s=t.length===0?this.quill.getLines(t.index,1):this.quill.getLines(t);let{index:l,length:c}=t;s.forEach((u,d)=>{o?(u.insertAt(0,i),d===0?l+=i.length:c+=i.length):u.domNode.textContent.startsWith(i)&&(u.deleteAt(0,i.length),d===0?l-=i.length:c-=i.length)}),this.quill.update(X.sources.USER),this.quill.setSelection(l,c,X.sources.SILENT)}}}function $a(o,t){return{key:o,shiftKey:t,altKey:null,[o==="ArrowLeft"?"prefix":"suffix"]:/^$/,handler(a){let{index:r}=a;o==="ArrowRight"&&(r+=a.length+1);const[i]=this.quill.getLeaf(r);return i instanceof Ut?(o==="ArrowLeft"?t?this.quill.setSelection(a.index-1,a.length+1,X.sources.USER):this.quill.setSelection(a.index-1,X.sources.USER):t?this.quill.setSelection(a.index,a.length+1,X.sources.USER):this.quill.setSelection(a.index+a.length+1,X.sources.USER),!1):!0}}}function Xi(o){return{key:o[0],shortKey:!0,handler(t,n){this.quill.format(o,!n.format[o],X.sources.USER)}}}function tu(o){return{key:o?"ArrowUp":"ArrowDown",collapsed:!0,format:["table"],handler(t,n){const a=o?"prev":"next",r=n.line,i=r.parent[a];if(i!=null){if(i.statics.blotName==="table-row"){let s=i.children.head,l=r;for(;l.prev!=null;)l=l.prev,s=s.next;const c=s.offset(this.quill.scroll)+Math.min(n.offset,s.length()-1);this.quill.setSelection(c,0,X.sources.USER)}}else{const s=r.table()[a];s!=null&&(o?this.quill.setSelection(s.offset(this.quill.scroll)+s.length()-1,0,X.sources.USER):this.quill.setSelection(s.offset(this.quill.scroll),0,X.sources.USER))}return!1}}}function rC(o){if(typeof o=="string"||typeof o=="number")o={key:o};else if(typeof o=="object")o=Xn(o);else return null;return o.shortKey&&(o[oC]=o.shortKey,delete o.shortKey),o}function i1(o){let{quill:t,range:n}=o;const a=t.getLines(n);let r={};if(a.length>1){const i=a[0].formats(),s=a[a.length-1].formats();r=Jt.AttributeMap.diff(s,i)||{}}t.deleteText(n,X.sources.USER),Object.keys(r).length>0&&t.formatLine(n.index,1,r,X.sources.USER),t.setSelection(n.index,X.sources.SILENT)}function iC(o,t,n,a){return t.prev==null&&t.next==null?n.prev==null&&n.next==null?a===0?-1:1:n.prev==null?-1:1:t.prev==null?-1:t.next==null?1:null}const sC=/font-weight:\s*normal/,lC=["P","OL","UL"],nu=o=>o&&lC.includes(o.tagName),cC=o=>{Array.from(o.querySelectorAll("br")).filter(t=>nu(t.previousElementSibling)&&nu(t.nextElementSibling)).forEach(t=>{var n;(n=t.parentNode)==null||n.removeChild(t)})},uC=o=>{Array.from(o.querySelectorAll('b[style*="font-weight"]')).filter(t=>{var n;return(n=t.getAttribute("style"))==null?void 0:n.match(sC)}).forEach(t=>{var a;const n=o.createDocumentFragment();n.append(...t.childNodes),(a=t.parentNode)==null||a.replaceChild(n,t)})};function dC(o){o.querySelector('[id^="docs-internal-guid-"]')&&(uC(o),cC(o))}const pC=/\bmso-list:[^;]*ignore/i,mC=/\bmso-list:[^;]*\bl(\d+)/i,fC=/\bmso-list:[^;]*\blevel(\d+)/i,hC=(o,t)=>{const n=o.getAttribute("style"),a=n==null?void 0:n.match(mC);if(!a)return null;const r=Number(a[1]),i=n==null?void 0:n.match(fC),s=i?Number(i[1]):1,l=new RegExp(`@list l${r}:level${s}\\s*\\{[^\\}]*mso-level-number-format:\\s*([\\w-]+)`,"i"),c=t.match(l),u=c&&c[1]==="bullet"?"bullet":"ordered";return{id:r,indent:s,type:u,element:o}},vC=o=>{var s,l;const t=Array.from(o.querySelectorAll("[style*=mso-list]")),n=[],a=[];t.forEach(c=>{(c.getAttribute("style")||"").match(pC)?n.push(c):a.push(c)}),n.forEach(c=>{var u;return(u=c.parentNode)==null?void 0:u.removeChild(c)});const r=o.documentElement.innerHTML,i=a.map(c=>hC(c,r)).filter(c=>c);for(;i.length;){const c=[];let u=i.shift();for(;u;)c.push(u),u=i.length&&((s=i[0])==null?void 0:s.element)===u.element.nextElementSibling&&i[0].id===u.id?i.shift():null;const d=document.createElement("ul");c.forEach(f=>{const h=document.createElement("li");h.setAttribute("data-list",f.type),f.indent>1&&h.setAttribute("class",`ql-indent-${f.indent-1}`),h.innerHTML=f.element.innerHTML,d.appendChild(h)});const p=(l=c[0])==null?void 0:l.element,{parentNode:m}=p??{};p&&(m==null||m.replaceChild(d,p)),c.slice(1).forEach(f=>{let{element:h}=f;m==null||m.removeChild(h)})}};function gC(o){o.documentElement.getAttribute("xmlns:w")==="urn:schemas-microsoft-com:office:word"&&vC(o)}const bC=[gC,dC],yC=o=>{o.documentElement&&bC.forEach(t=>{t(o)})},EC=U0("quill:clipboard"),wC=[[Node.TEXT_NODE,IC],[Node.TEXT_NODE,au],["br",TC],[Node.ELEMENT_NODE,au],[Node.ELEMENT_NODE,SC],[Node.ELEMENT_NODE,NC],[Node.ELEMENT_NODE,DC],["li",VC],["ol, ul",AC],["pre",kC],["tr",RC],["b",Qi("bold")],["i",Qi("italic")],["strike",Qi("strike")],["style",xC]],CC=[Xw,l3].reduce((o,t)=>(o[t.keyName]=t,o),{}),ou=[i3,o1,n1,u3,m3,h3].reduce((o,t)=>(o[t.keyName]=t,o),{});class v3 extends g0{constructor(t,n){super(t,n),this.quill.root.addEventListener("copy",a=>this.onCaptureCopy(a,!1)),this.quill.root.addEventListener("cut",a=>this.onCaptureCopy(a,!0)),this.quill.root.addEventListener("paste",this.onCapturePaste.bind(this)),this.matchers=[],wC.concat(this.options.matchers??[]).forEach(a=>{let[r,i]=a;this.addMatcher(r,i)})}addMatcher(t,n){this.matchers.push([t,n])}convert(t){let{html:n,text:a}=t,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r[Nt.blotName])return new me().insert(a||"",{[Nt.blotName]:r[Nt.blotName]});if(!n)return new me().insert(a||"",r);const i=this.convertHTML(n);return aa(i,`
`)&&(i.ops[i.ops.length-1].attributes==null||r.table)?i.compose(new me().retain(i.length()-1).delete(1)):i}normalizeHTML(t){yC(t)}convertHTML(t){const n=new DOMParser().parseFromString(t,"text/html");this.normalizeHTML(n);const a=n.body,r=new WeakMap,[i,s]=this.prepareMatching(a,r);return s1(this.quill.scroll,a,i,s,r)}dangerouslyPasteHTML(t,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:X.sources.API;if(typeof t=="string"){const r=this.convert({html:t,text:""});this.quill.setContents(r,n),this.quill.setSelection(0,X.sources.SILENT)}else{const r=this.convert({html:n,text:""});this.quill.updateContents(new me().retain(t).concat(r),a),this.quill.setSelection(t+r.length(),X.sources.SILENT)}}onCaptureCopy(t){var s,l;let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(t.defaultPrevented)return;t.preventDefault();const[a]=this.quill.selection.getRange();if(a==null)return;const{html:r,text:i}=this.onCopy(a,n);(s=t.clipboardData)==null||s.setData("text/plain",i),(l=t.clipboardData)==null||l.setData("text/html",r),n&&i1({range:a,quill:this.quill})}normalizeURIList(t){return t.split(/\r?\n/).filter(n=>n[0]!=="#").join(`
`)}onCapturePaste(t){var s,l,c,u,d;if(t.defaultPrevented||!this.quill.isEnabled())return;t.preventDefault();const n=this.quill.getSelection(!0);if(n==null)return;const a=(s=t.clipboardData)==null?void 0:s.getData("text/html");let r=(l=t.clipboardData)==null?void 0:l.getData("text/plain");if(!a&&!r){const p=(c=t.clipboardData)==null?void 0:c.getData("text/uri-list");p&&(r=this.normalizeURIList(p))}const i=Array.from(((u=t.clipboardData)==null?void 0:u.files)||[]);if(!a&&i.length>0){this.quill.uploader.upload(n,i);return}if(a&&i.length>0){const p=new DOMParser().parseFromString(a,"text/html");if(p.body.childElementCount===1&&((d=p.body.firstElementChild)==null?void 0:d.tagName)==="IMG"){this.quill.uploader.upload(n,i);return}}this.onPaste(n,{html:a,text:r})}onCopy(t){const n=this.quill.getText(t);return{html:this.quill.getSemanticHTML(t),text:n}}onPaste(t,n){let{text:a,html:r}=n;const i=this.quill.getFormat(t.index),s=this.convert({text:a,html:r},i);EC.log("onPaste",s,{text:a,html:r});const l=new me().retain(t.index).delete(t.length).concat(s);this.quill.updateContents(l,X.sources.USER),this.quill.setSelection(l.length()-t.length,X.sources.SILENT),this.quill.scrollSelectionIntoView()}prepareMatching(t,n){const a=[],r=[];return this.matchers.forEach(i=>{const[s,l]=i;switch(s){case Node.TEXT_NODE:r.push(l);break;case Node.ELEMENT_NODE:a.push(l);break;default:Array.from(t.querySelectorAll(s)).forEach(c=>{if(n.has(c)){const u=n.get(c);u==null||u.push(l)}else n.set(c,[l])});break}}),[a,r]}}H(v3,"DEFAULTS",{matchers:[]});function On(o,t,n,a){return a.query(t)?o.reduce((r,i)=>{if(!i.insert)return r;if(i.attributes&&i.attributes[t])return r.push(i);const s=n?{[t]:n}:{};return r.insert(i.insert,{...s,...i.attributes})},new me):o}function aa(o,t){let n="";for(let a=o.ops.length-1;a>=0&&n.length<t.length;--a){const r=o.ops[a];if(typeof r.insert!="string")break;n=r.insert+n}return n.slice(-1*t.length)===t}function Q0(o,t){if(!(o instanceof Element))return!1;const n=t.query(o);return n&&n.prototype instanceof Ut?!1:["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].includes(o.tagName.toLowerCase())}function _C(o,t){return o.previousElementSibling&&o.nextElementSibling&&!Q0(o.previousElementSibling,t)&&!Q0(o.nextElementSibling,t)}const La=new WeakMap;function g3(o){return o==null?!1:(La.has(o)||(o.tagName==="PRE"?La.set(o,!0):La.set(o,g3(o.parentNode))),La.get(o))}function s1(o,t,n,a,r){return t.nodeType===t.TEXT_NODE?a.reduce((i,s)=>s(t,i,o),new me):t.nodeType===t.ELEMENT_NODE?Array.from(t.childNodes||[]).reduce((i,s)=>{let l=s1(o,s,n,a,r);return s.nodeType===t.ELEMENT_NODE&&(l=n.reduce((c,u)=>u(s,c,o),l),l=(r.get(s)||[]).reduce((c,u)=>u(s,c,o),l)),i.concat(l)},new me):new me}function Qi(o){return(t,n,a)=>On(n,o,!0,a)}function NC(o,t,n){const a=k0.keys(o),r=h0.keys(o),i=cn.keys(o),s={};return a.concat(r).concat(i).forEach(l=>{let c=n.query(l,fe.ATTRIBUTE);c!=null&&(s[c.attrName]=c.value(o),s[c.attrName])||(c=CC[l],c!=null&&(c.attrName===l||c.keyName===l)&&(s[c.attrName]=c.value(o)||void 0),c=ou[l],c!=null&&(c.attrName===l||c.keyName===l)&&(c=ou[l],s[c.attrName]=c.value(o)||void 0))}),Object.entries(s).reduce((l,c)=>{let[u,d]=c;return On(l,u,d,n)},t)}function SC(o,t,n){const a=n.query(o);if(a==null)return t;if(a.prototype instanceof Ut){const r={},i=a.value(o);if(i!=null)return r[a.blotName]=i,new me().insert(r,a.formats(o,n))}else if(a.prototype instanceof qo&&!aa(t,`
`)&&t.insert(`
`),"blotName"in a&&"formats"in a&&typeof a.formats=="function")return On(t,a.blotName,a.formats(o,n),n);return t}function TC(o,t){return aa(t,`
`)||t.insert(`
`),t}function kC(o,t,n){const a=n.query("code-block"),r=a&&"formats"in a&&typeof a.formats=="function"?a.formats(o,n):!0;return On(t,"code-block",r,n)}function xC(){return new me}function VC(o,t,n){const a=n.query(o);if(a==null||a.blotName!=="list"||!aa(t,`
`))return t;let r=-1,i=o.parentNode;for(;i!=null;)["OL","UL"].includes(i.tagName)&&(r+=1),i=i.parentNode;return r<=0?t:t.reduce((s,l)=>l.insert?l.attributes&&typeof l.attributes.indent=="number"?s.push(l):s.insert(l.insert,{indent:r,...l.attributes||{}}):s,new me)}function AC(o,t,n){const a=o.tagName==="OL"?"ordered":"bullet";return On(t,"list",a,n)}function au(o,t,n){if(!aa(t,`
`)){if(Q0(o,n)&&(o.childNodes.length>0||o instanceof HTMLParagraphElement))return t.insert(`
`);if(t.length()>0&&o.nextSibling){let a=o.nextSibling;for(;a!=null;){if(Q0(a,n))return t.insert(`
`);const r=n.query(a);if(r&&r.prototype instanceof Yt)return t.insert(`
`);a=a.firstChild}}}return t}function DC(o,t,n){var i;const a={},r=o.style||{};return r.fontStyle==="italic"&&(a.italic=!0),r.textDecoration==="underline"&&(a.underline=!0),r.textDecoration==="line-through"&&(a.strike=!0),((i=r.fontWeight)!=null&&i.startsWith("bold")||parseInt(r.fontWeight,10)>=700)&&(a.bold=!0),t=Object.entries(a).reduce((s,l)=>{let[c,u]=l;return On(s,c,u,n)},t),parseFloat(r.textIndent||0)>0?new me().insert("	").concat(t):t}function RC(o,t,n){var r,i;const a=((r=o.parentElement)==null?void 0:r.tagName)==="TABLE"?o.parentElement:(i=o.parentElement)==null?void 0:i.parentElement;if(a!=null){const l=Array.from(a.querySelectorAll("tr")).indexOf(o)+1;return On(t,"table",l,n)}return t}function IC(o,t,n){var r;let a=o.data;if(((r=o.parentElement)==null?void 0:r.tagName)==="O:P")return t.insert(a.trim());if(!g3(o)){if(a.trim().length===0&&a.includes(`
`)&&!_C(o,n))return t;const i=(s,l)=>{const c=l.replace(/[^\u00a0]/g,"");return c.length<1&&s?" ":c};a=a.replace(/\r\n/g," ").replace(/\n/g," "),a=a.replace(/\s\s+/g,i.bind(i,!0)),(o.previousSibling==null&&o.parentElement!=null&&Q0(o.parentElement,n)||o.previousSibling instanceof Element&&Q0(o.previousSibling,n))&&(a=a.replace(/^\s+/,i.bind(i,!1))),(o.nextSibling==null&&o.parentElement!=null&&Q0(o.parentElement,n)||o.nextSibling instanceof Element&&Q0(o.nextSibling,n))&&(a=a.replace(/\s+$/,i.bind(i,!1)))}return t.insert(a)}class b3 extends g0{constructor(n,a){super(n,a);H(this,"lastRecorded",0);H(this,"ignoreChange",!1);H(this,"stack",{undo:[],redo:[]});H(this,"currentRange",null);this.quill.on(X.events.EDITOR_CHANGE,(r,i,s,l)=>{r===X.events.SELECTION_CHANGE?i&&l!==X.sources.SILENT&&(this.currentRange=i):r===X.events.TEXT_CHANGE&&(this.ignoreChange||(!this.options.userOnly||l===X.sources.USER?this.record(i,s):this.transform(i)),this.currentRange=js(this.currentRange,i))}),this.quill.keyboard.addBinding({key:"z",shortKey:!0},this.undo.bind(this)),this.quill.keyboard.addBinding({key:["z","Z"],shortKey:!0,shiftKey:!0},this.redo.bind(this)),/Win/i.test(navigator.platform)&&this.quill.keyboard.addBinding({key:"y",shortKey:!0},this.redo.bind(this)),this.quill.root.addEventListener("beforeinput",r=>{r.inputType==="historyUndo"?(this.undo(),r.preventDefault()):r.inputType==="historyRedo"&&(this.redo(),r.preventDefault())})}change(n,a){if(this.stack[n].length===0)return;const r=this.stack[n].pop();if(!r)return;const i=this.quill.getContents(),s=r.delta.invert(i);this.stack[a].push({delta:s,range:js(r.range,s)}),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r.delta,X.sources.USER),this.ignoreChange=!1,this.restoreSelection(r)}clear(){this.stack={undo:[],redo:[]}}cutoff(){this.lastRecorded=0}record(n,a){if(n.ops.length===0)return;this.stack.redo=[];let r=n.invert(a),i=this.currentRange;const s=Date.now();if(this.lastRecorded+this.options.delay>s&&this.stack.undo.length>0){const l=this.stack.undo.pop();l&&(r=r.compose(l.delta),i=l.range)}else this.lastRecorded=s;r.length()!==0&&(this.stack.undo.push({delta:r,range:i}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}redo(){this.change("redo","undo")}transform(n){ru(this.stack.undo,n),ru(this.stack.redo,n)}undo(){this.change("undo","redo")}restoreSelection(n){if(n.range)this.quill.setSelection(n.range,X.sources.USER);else{const a=$C(this.quill.scroll,n.delta);this.quill.setSelection(a,X.sources.USER)}}}H(b3,"DEFAULTS",{delay:1e3,maxStack:100,userOnly:!1});function ru(o,t){let n=t;for(let a=o.length-1;a>=0;a-=1){const r=o[a];o[a]={delta:n.transform(r.delta,!0),range:r.range&&js(r.range,n)},n=r.delta.transform(n),o[a].delta.length()===0&&o.splice(a,1)}}function OC(o,t){const n=t.ops[t.ops.length-1];return n==null?!1:n.insert!=null?typeof n.insert=="string"&&n.insert.endsWith(`
`):n.attributes!=null?Object.keys(n.attributes).some(a=>o.query(a,fe.BLOCK)!=null):!1}function $C(o,t){const n=t.reduce((r,i)=>r+(i.delete||0),0);let a=t.length()-n;return OC(o,t)&&(a-=1),a}function js(o,t){if(!o)return o;const n=t.transformPosition(o.index),a=t.transformPosition(o.index+o.length);return{index:n,length:a-n}}class y3 extends g0{constructor(t,n){super(t,n),t.root.addEventListener("drop",a=>{var s;a.preventDefault();let r=null;if(document.caretRangeFromPoint)r=document.caretRangeFromPoint(a.clientX,a.clientY);else if(document.caretPositionFromPoint){const l=document.caretPositionFromPoint(a.clientX,a.clientY);r=document.createRange(),r.setStart(l.offsetNode,l.offset),r.setEnd(l.offsetNode,l.offset)}const i=r&&t.selection.normalizeNative(r);if(i){const l=t.selection.normalizedToRange(i);(s=a.dataTransfer)!=null&&s.files&&this.upload(l,a.dataTransfer.files)}})}upload(t,n){const a=[];Array.from(n).forEach(r=>{var i;r&&((i=this.options.mimetypes)!=null&&i.includes(r.type))&&a.push(r)}),a.length>0&&this.options.handler.call(this,t,a)}}y3.DEFAULTS={mimetypes:["image/png","image/jpeg"],handler(o,t){const n=t.map(a=>new Promise(r=>{const i=new FileReader;i.onload=s=>{r(s.target.result)},i.readAsDataURL(a)}));Promise.all(n).then(a=>{const r=a.reduce((i,s)=>i.insert({image:s}),new me().retain(o.index).delete(o.length));this.quill.updateContents(r,de.sources.USER),this.quill.setSelection(o.index+a.length,de.sources.SILENT)})}};const LC=["insertText","insertReplacementText"];class BC extends g0{constructor(t,n){super(t,n),t.root.addEventListener("beforeinput",a=>{this.handleBeforeInput(a)}),/Android/i.test(navigator.userAgent)||t.on(X.events.COMPOSITION_BEFORE_START,()=>{this.handleCompositionStart()})}deleteRange(t){i1({range:t,quill:this.quill})}replaceText(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if(t.length===0)return!1;if(n){const a=this.quill.getFormat(t.index,1);this.deleteRange(t),this.quill.updateContents(new me().retain(t.index).insert(n,a),X.sources.USER)}else this.deleteRange(t);return this.quill.setSelection(t.index+n.length,0,X.sources.SILENT),!0}handleBeforeInput(t){if(this.quill.composition.isComposing||t.defaultPrevented||!LC.includes(t.inputType))return;const n=t.getTargetRanges?t.getTargetRanges()[0]:null;if(!n||n.collapsed===!0)return;const a=PC(t);if(a==null)return;const r=this.quill.selection.normalizeNative(n),i=r?this.quill.selection.normalizedToRange(r):null;i&&this.replaceText(i,a)&&t.preventDefault()}handleCompositionStart(){const t=this.quill.getSelection();t&&this.replaceText(t)}}function PC(o){var t;return typeof o.data=="string"?o.data:(t=o.dataTransfer)!=null&&t.types.includes("text/plain")?o.dataTransfer.getData("text/plain"):null}const MC=/Mac/i.test(navigator.platform),FC=100,jC=o=>!!(o.key==="ArrowLeft"||o.key==="ArrowRight"||o.key==="ArrowUp"||o.key==="ArrowDown"||o.key==="Home"||MC&&o.key==="a"&&o.ctrlKey===!0);class qC extends g0{constructor(n,a){super(n,a);H(this,"isListening",!1);H(this,"selectionChangeDeadline",0);this.handleArrowKeys(),this.handleNavigationShortcuts()}handleArrowKeys(){this.quill.keyboard.addBinding({key:["ArrowLeft","ArrowRight"],offset:0,shiftKey:null,handler(n,a){let{line:r,event:i}=a;if(!(r instanceof d0)||!r.uiNode)return!0;const s=getComputedStyle(r.domNode).direction==="rtl";return s&&i.key!=="ArrowRight"||!s&&i.key!=="ArrowLeft"?!0:(this.quill.setSelection(n.index-1,n.length+(i.shiftKey?1:0),X.sources.USER),!1)}})}handleNavigationShortcuts(){this.quill.root.addEventListener("keydown",n=>{!n.defaultPrevented&&jC(n)&&this.ensureListeningToSelectionChange()})}ensureListeningToSelectionChange(){if(this.selectionChangeDeadline=Date.now()+FC,this.isListening)return;this.isListening=!0;const n=()=>{this.isListening=!1,Date.now()<=this.selectionChangeDeadline&&this.handleSelectionChange()};document.addEventListener("selectionchange",n,{once:!0})}handleSelectionChange(){const n=document.getSelection();if(!n)return;const a=n.getRangeAt(0);if(a.collapsed!==!0||a.startOffset!==0)return;const r=this.quill.scroll.find(a.startContainer);if(!(r instanceof d0)||!r.uiNode)return;const i=document.createRange();i.setStartAfter(r.uiNode),i.setEndAfter(r.uiNode),n.removeAllRanges(),n.addRange(i)}}X.register({"blots/block":dt,"blots/block/embed":Yt,"blots/break":v0,"blots/container":Rn,"blots/cursor":ao,"blots/embed":e1,"blots/inline":x0,"blots/scroll":Kn,"blots/text":m0,"modules/clipboard":v3,"modules/history":b3,"modules/keyboard":jr,"modules/uploader":y3,"modules/input":BC,"modules/uiNode":qC});class UC extends h0{add(t,n){let a=0;if(n==="+1"||n==="-1"){const r=this.value(t)||0;a=n==="+1"?r+1:r-1}else typeof n=="number"&&(a=n);return a===0?(this.remove(t),!0):super.add(t,a.toString())}canAdd(t,n){return super.canAdd(t,n)||super.canAdd(t,parseInt(n,10))}value(t){return parseInt(super.value(t),10)||void 0}}const HC=new UC("indent","ql-indent",{scope:fe.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});class qs extends dt{}H(qs,"blotName","blockquote"),H(qs,"tagName","blockquote");class Us extends dt{static formats(t){return this.tagName.indexOf(t.tagName)+1}}H(Us,"blotName","header"),H(Us,"tagName",["H1","H2","H3","H4","H5","H6"]);class ra extends Rn{}ra.blotName="list-container";ra.tagName="OL";class ia extends dt{static create(t){const n=super.create();return n.setAttribute("data-list",t),n}static formats(t){return t.getAttribute("data-list")||void 0}static register(){X.register(ra)}constructor(t,n){super(t,n);const a=n.ownerDocument.createElement("span"),r=i=>{if(!t.isEnabled())return;const s=this.statics.formats(n,t);s==="checked"?(this.format("list","unchecked"),i.preventDefault()):s==="unchecked"&&(this.format("list","checked"),i.preventDefault())};a.addEventListener("mousedown",r),a.addEventListener("touchstart",r),this.attachUI(a)}format(t,n){t===this.statics.blotName&&n?this.domNode.setAttribute("data-list",n):super.format(t,n)}}ia.blotName="list";ia.tagName="LI";ra.allowedChildren=[ia];ia.requiredContainer=ra;class Zo extends x0{static create(){return super.create()}static formats(){return!0}optimize(t){super.optimize(t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}H(Zo,"blotName","bold"),H(Zo,"tagName",["STRONG","B"]);class Hs extends Zo{}H(Hs,"blotName","italic"),H(Hs,"tagName",["EM","I"]);class en extends x0{static create(t){const n=super.create(t);return n.setAttribute("href",this.sanitize(t)),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}static formats(t){return t.getAttribute("href")}static sanitize(t){return E3(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}format(t,n){t!==this.statics.blotName||!n?super.format(t,n):this.domNode.setAttribute("href",this.constructor.sanitize(n))}}H(en,"blotName","link"),H(en,"tagName","A"),H(en,"SANITIZED_URL","about:blank"),H(en,"PROTOCOL_WHITELIST",["http","https","mailto","tel","sms"]);function E3(o,t){const n=document.createElement("a");n.href=o;const a=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(a)>-1}class Zs extends x0{static create(t){return t==="super"?document.createElement("sup"):t==="sub"?document.createElement("sub"):super.create(t)}static formats(t){if(t.tagName==="SUB")return"sub";if(t.tagName==="SUP")return"super"}}H(Zs,"blotName","script"),H(Zs,"tagName",["SUB","SUP"]);class zs extends Zo{}H(zs,"blotName","strike"),H(zs,"tagName",["S","STRIKE"]);class Gs extends x0{}H(Gs,"blotName","underline"),H(Gs,"tagName","U");class Ha extends e1{static create(t){if(window.katex==null)throw new Error("Formula module requires KaTeX.");const n=super.create(t);return typeof t=="string"&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}static value(t){return t.getAttribute("data-value")}html(){const{formula:t}=this.value();return`<span>${t}</span>`}}H(Ha,"blotName","formula"),H(Ha,"className","ql-formula"),H(Ha,"tagName","SPAN");const iu=["alt","height","width"];var Pa;let ZC=(Pa=class extends Ut{static create(t){const n=super.create(t);return typeof t=="string"&&n.setAttribute("src",this.sanitize(t)),n}static formats(t){return iu.reduce((n,a)=>(t.hasAttribute(a)&&(n[a]=t.getAttribute(a)),n),{})}static match(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}static sanitize(t){return E3(t,["http","https","data"])?t:"//:0"}static value(t){return t.getAttribute("src")}format(t,n){iu.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):super.format(t,n)}},H(Pa,"blotName","image"),H(Pa,"tagName","IMG"),Pa);const su=["height","width"];class Za extends Yt{static create(t){const n=super.create(t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen","true"),n.setAttribute("src",this.sanitize(t)),n}static formats(t){return su.reduce((n,a)=>(t.hasAttribute(a)&&(n[a]=t.getAttribute(a)),n),{})}static sanitize(t){return en.sanitize(t)}static value(t){return t.getAttribute("src")}format(t,n){su.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):super.format(t,n)}html(){const{video:t}=this.value();return`<a href="${t}">${t}</a>`}}H(Za,"blotName","video"),H(Za,"className","ql-video"),H(Za,"tagName","IFRAME");const Ro=new h0("code-token","hljs",{scope:fe.INLINE});class P0 extends x0{static formats(t,n){for(;t!=null&&t!==n.domNode;){if(t.classList&&t.classList.contains(Nt.className))return super.formats(t,n);t=t.parentNode}}constructor(t,n,a){super(t,n,a),Ro.add(this.domNode,a)}format(t,n){t!==P0.blotName?super.format(t,n):n?Ro.add(this.domNode,n):(Ro.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}optimize(){super.optimize(...arguments),Ro.value(this.domNode)||this.unwrap()}}P0.blotName="code-token";P0.className="ql-token";class Wt extends Nt{static create(t){const n=super.create(t);return typeof t=="string"&&n.setAttribute("data-language",t),n}static formats(t){return t.getAttribute("data-language")||"plain"}static register(){}format(t,n){t===this.statics.blotName&&n?this.domNode.setAttribute("data-language",n):super.format(t,n)}replaceWith(t,n){return this.formatAt(0,this.length(),P0.blotName,!1),super.replaceWith(t,n)}}class Oo extends In{attach(){super.attach(),this.forceNext=!1,this.scroll.emitMount(this)}format(t,n){t===Wt.blotName&&(this.forceNext=!0,this.children.forEach(a=>{a.format(t,n)}))}formatAt(t,n,a,r){a===Wt.blotName&&(this.forceNext=!0),super.formatAt(t,n,a,r)}highlight(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.children.head==null)return;const r=`${Array.from(this.domNode.childNodes).filter(s=>s!==this.uiNode).map(s=>s.textContent).join(`
`)}
`,i=Wt.formats(this.children.head.domNode);if(n||this.forceNext||this.cachedText!==r){if(r.trim().length>0||this.cachedText==null){const s=this.children.reduce((c,u)=>c.concat(n3(u,!1)),new me),l=t(r,i);s.diff(l).reduce((c,u)=>{let{retain:d,attributes:p}=u;return d?(p&&Object.keys(p).forEach(m=>{[Wt.blotName,P0.blotName].includes(m)&&this.formatAt(c,d,m,p[m])}),c+d):c},0)}this.cachedText=r,this.forceNext=!1}}html(t,n){const[a]=this.children.find(t);return`<pre data-language="${a?Wt.formats(a.domNode):"plain"}">
${Fr(this.code(t,n))}
</pre>`}optimize(t){if(super.optimize(t),this.parent!=null&&this.children.head!=null&&this.uiNode!=null){const n=Wt.formats(this.children.head.domNode);n!==this.uiNode.value&&(this.uiNode.value=n)}}}Oo.allowedChildren=[Wt];Wt.requiredContainer=Oo;Wt.allowedChildren=[P0,ao,m0,v0];const zC=(o,t,n)=>{if(typeof o.versionString=="string"){const a=o.versionString.split(".")[0];if(parseInt(a,10)>=11)return o.highlight(n,{language:t}).value}return o.highlight(t,n).value};class w3 extends g0{static register(){X.register(P0,!0),X.register(Wt,!0),X.register(Oo,!0)}constructor(t,n){if(super(t,n),this.options.hljs==null)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");this.languages=this.options.languages.reduce((a,r)=>{let{key:i}=r;return a[i]=!0,a},{}),this.highlightBlot=this.highlightBlot.bind(this),this.initListener(),this.initTimer()}initListener(){this.quill.on(X.events.SCROLL_BLOT_MOUNT,t=>{if(!(t instanceof Oo))return;const n=this.quill.root.ownerDocument.createElement("select");this.options.languages.forEach(a=>{let{key:r,label:i}=a;const s=n.ownerDocument.createElement("option");s.textContent=i,s.setAttribute("value",r),n.appendChild(s)}),n.addEventListener("change",()=>{t.format(Wt.blotName,n.value),this.quill.root.focus(),this.highlight(t,!0)}),t.uiNode==null&&(t.attachUI(n),t.children.head&&(n.value=Wt.formats(t.children.head.domNode)))})}initTimer(){let t=null;this.quill.on(X.events.SCROLL_OPTIMIZE,()=>{t&&clearTimeout(t),t=setTimeout(()=>{this.highlight(),t=null},this.options.interval)})}highlight(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this.quill.selection.composing)return;this.quill.update(X.sources.USER);const a=this.quill.getSelection();(t==null?this.quill.scroll.descendants(Oo):[t]).forEach(i=>{i.highlight(this.highlightBlot,n)}),this.quill.update(X.sources.SILENT),a!=null&&this.quill.setSelection(a,X.sources.SILENT)}highlightBlot(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"plain";if(n=this.languages[n]?n:"plain",n==="plain")return Fr(t).split(`
`).reduce((r,i,s)=>(s!==0&&r.insert(`
`,{[Nt.blotName]:n}),r.insert(i)),new me);const a=this.quill.root.ownerDocument.createElement("div");return a.classList.add(Nt.className),a.innerHTML=zC(this.options.hljs,n,t),s1(this.quill.scroll,a,[(r,i)=>{const s=Ro.value(r);return s?i.compose(new me().retain(i.length(),{[P0.blotName]:s})):i}],[(r,i)=>r.data.split(`
`).reduce((s,l,c)=>(c!==0&&s.insert(`
`,{[Nt.blotName]:n}),s.insert(l)),i)],new WeakMap)}}w3.DEFAULTS={hljs:window.hljs,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"JavaScript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]};const Lo=class Lo extends dt{static create(t){const n=super.create();return t?n.setAttribute("data-row",t):n.setAttribute("data-row",l1()),n}static formats(t){if(t.hasAttribute("data-row"))return t.getAttribute("data-row")}cellOffset(){return this.parent?this.parent.children.indexOf(this):-1}format(t,n){t===Lo.blotName&&n?this.domNode.setAttribute("data-row",n):super.format(t,n)}row(){return this.parent}rowOffset(){return this.row()?this.row().rowOffset():-1}table(){return this.row()&&this.row().table()}};H(Lo,"blotName","table"),H(Lo,"tagName","TD");let c0=Lo;class M0 extends Rn{checkMerge(){if(super.checkMerge()&&this.next.children.head!=null){const t=this.children.head.formats(),n=this.children.tail.formats(),a=this.next.children.head.formats(),r=this.next.children.tail.formats();return t.table===n.table&&t.table===a.table&&t.table===r.table}return!1}optimize(t){super.optimize(t),this.children.forEach(n=>{if(n.next==null)return;const a=n.formats(),r=n.next.formats();if(a.table!==r.table){const i=this.splitAfter(n);i&&i.optimize(),this.prev&&this.prev.optimize()}})}rowOffset(){return this.parent?this.parent.children.indexOf(this):-1}table(){return this.parent&&this.parent.parent}}H(M0,"blotName","table-row"),H(M0,"tagName","TR");class N0 extends Rn{}H(N0,"blotName","table-body"),H(N0,"tagName","TBODY");class io extends Rn{balanceCells(){const t=this.descendants(M0),n=t.reduce((a,r)=>Math.max(r.children.length,a),0);t.forEach(a=>{new Array(n-a.children.length).fill(0).forEach(()=>{let r;a.children.head!=null&&(r=c0.formats(a.children.head.domNode));const i=this.scroll.create(c0.blotName,r);a.appendChild(i),i.optimize()})})}cells(t){return this.rows().map(n=>n.children.at(t))}deleteColumn(t){const[n]=this.descendant(N0);n==null||n.children.head==null||n.children.forEach(a=>{const r=a.children.at(t);r!=null&&r.remove()})}insertColumn(t){const[n]=this.descendant(N0);n==null||n.children.head==null||n.children.forEach(a=>{const r=a.children.at(t),i=c0.formats(a.children.head.domNode),s=this.scroll.create(c0.blotName,i);a.insertBefore(s,r)})}insertRow(t){const[n]=this.descendant(N0);if(n==null||n.children.head==null)return;const a=l1(),r=this.scroll.create(M0.blotName);n.children.head.children.forEach(()=>{const s=this.scroll.create(c0.blotName,a);r.appendChild(s)});const i=n.children.at(t);n.insertBefore(r,i)}rows(){const t=this.children.head;return t==null?[]:t.children.map(n=>n)}}H(io,"blotName","table-container"),H(io,"tagName","TABLE");io.allowedChildren=[N0];N0.requiredContainer=io;N0.allowedChildren=[M0];M0.requiredContainer=N0;M0.allowedChildren=[c0];c0.requiredContainer=M0;function l1(){return`row-${Math.random().toString(36).slice(2,6)}`}class GC extends g0{static register(){X.register(c0),X.register(M0),X.register(N0),X.register(io)}constructor(){super(...arguments),this.listenBalanceCells()}balanceTables(){this.quill.scroll.descendants(io).forEach(t=>{t.balanceCells()})}deleteColumn(){const[t,,n]=this.getTable();n!=null&&(t.deleteColumn(n.cellOffset()),this.quill.update(X.sources.USER))}deleteRow(){const[,t]=this.getTable();t!=null&&(t.remove(),this.quill.update(X.sources.USER))}deleteTable(){const[t]=this.getTable();if(t==null)return;const n=t.offset();t.remove(),this.quill.update(X.sources.USER),this.quill.setSelection(n,X.sources.SILENT)}getTable(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.quill.getSelection();if(t==null)return[null,null,null,-1];const[n,a]=this.quill.getLine(t.index);if(n==null||n.statics.blotName!==c0.blotName)return[null,null,null,-1];const r=n.parent;return[r.parent.parent,r,n,a]}insertColumn(t){const n=this.quill.getSelection();if(!n)return;const[a,r,i]=this.getTable(n);if(i==null)return;const s=i.cellOffset();a.insertColumn(s+t),this.quill.update(X.sources.USER);let l=r.rowOffset();t===0&&(l+=1),this.quill.setSelection(n.index+l,n.length,X.sources.SILENT)}insertColumnLeft(){this.insertColumn(0)}insertColumnRight(){this.insertColumn(1)}insertRow(t){const n=this.quill.getSelection();if(!n)return;const[a,r,i]=this.getTable(n);if(i==null)return;const s=r.rowOffset();a.insertRow(s+t),this.quill.update(X.sources.USER),t>0?this.quill.setSelection(n,X.sources.SILENT):this.quill.setSelection(n.index+r.children.length,n.length,X.sources.SILENT)}insertRowAbove(){this.insertRow(0)}insertRowBelow(){this.insertRow(1)}insertTable(t,n){const a=this.quill.getSelection();if(a==null)return;const r=new Array(t).fill(0).reduce(i=>{const s=new Array(n).fill(`
`).join("");return i.insert(s,{table:l1()})},new me().retain(a.index));this.quill.updateContents(r,X.sources.USER),this.quill.setSelection(a.index,X.sources.SILENT),this.balanceTables()}listenBalanceCells(){this.quill.on(X.events.SCROLL_OPTIMIZE,t=>{t.some(n=>["TD","TR","TBODY","TABLE"].includes(n.target.tagName)?(this.quill.once(X.events.TEXT_CHANGE,(a,r,i)=>{i===X.sources.USER&&this.balanceTables()}),!0):!1)})}}const lu=U0("quill:toolbar");class c1 extends g0{constructor(t,n){var a,r;if(super(t,n),Array.isArray(this.options.container)){const i=document.createElement("div");i.setAttribute("role","toolbar"),KC(i,this.options.container),(r=(a=t.container)==null?void 0:a.parentNode)==null||r.insertBefore(i,t.container),this.container=i}else typeof this.options.container=="string"?this.container=document.querySelector(this.options.container):this.container=this.options.container;if(!(this.container instanceof HTMLElement)){lu.error("Container required for toolbar",this.options);return}this.container.classList.add("ql-toolbar"),this.controls=[],this.handlers={},this.options.handlers&&Object.keys(this.options.handlers).forEach(i=>{var l;const s=(l=this.options.handlers)==null?void 0:l[i];s&&this.addHandler(i,s)}),Array.from(this.container.querySelectorAll("button, select")).forEach(i=>{this.attach(i)}),this.quill.on(X.events.EDITOR_CHANGE,()=>{const[i]=this.quill.selection.getRange();this.update(i)})}addHandler(t,n){this.handlers[t]=n}attach(t){let n=Array.from(t.classList).find(r=>r.indexOf("ql-")===0);if(!n)return;if(n=n.slice(3),t.tagName==="BUTTON"&&t.setAttribute("type","button"),this.handlers[n]==null&&this.quill.scroll.query(n)==null){lu.warn("ignoring attaching to nonexistent format",n,t);return}const a=t.tagName==="SELECT"?"change":"click";t.addEventListener(a,r=>{let i;if(t.tagName==="SELECT"){if(t.selectedIndex<0)return;const l=t.options[t.selectedIndex];l.hasAttribute("selected")?i=!1:i=l.value||!1}else t.classList.contains("ql-active")?i=!1:i=t.value||!t.hasAttribute("value"),r.preventDefault();this.quill.focus();const[s]=this.quill.selection.getRange();if(this.handlers[n]!=null)this.handlers[n].call(this,i);else if(this.quill.scroll.query(n).prototype instanceof Ut){if(i=prompt(`Enter ${n}`),!i)return;this.quill.updateContents(new me().retain(s.index).delete(s.length).insert({[n]:i}),X.sources.USER)}else this.quill.format(n,i,X.sources.USER);this.update(s)}),this.controls.push([n,t])}update(t){const n=t==null?{}:this.quill.getFormat(t);this.controls.forEach(a=>{const[r,i]=a;if(i.tagName==="SELECT"){let s=null;if(t==null)s=null;else if(n[r]==null)s=i.querySelector("option[selected]");else if(!Array.isArray(n[r])){let l=n[r];typeof l=="string"&&(l=l.replace(/"/g,'\\"')),s=i.querySelector(`option[value="${l}"]`)}s==null?(i.value="",i.selectedIndex=-1):s.selected=!0}else if(t==null)i.classList.remove("ql-active"),i.setAttribute("aria-pressed","false");else if(i.hasAttribute("value")){const s=n[r],l=s===i.getAttribute("value")||s!=null&&s.toString()===i.getAttribute("value")||s==null&&!i.getAttribute("value");i.classList.toggle("ql-active",l),i.setAttribute("aria-pressed",l.toString())}else{const s=n[r]!=null;i.classList.toggle("ql-active",s),i.setAttribute("aria-pressed",s.toString())}})}}c1.DEFAULTS={};function cu(o,t,n){const a=document.createElement("button");a.setAttribute("type","button"),a.classList.add(`ql-${t}`),a.setAttribute("aria-pressed","false"),n!=null?(a.value=n,a.setAttribute("aria-label",`${t}: ${n}`)):a.setAttribute("aria-label",t),o.appendChild(a)}function KC(o,t){Array.isArray(t[0])||(t=[t]),t.forEach(n=>{const a=document.createElement("span");a.classList.add("ql-formats"),n.forEach(r=>{if(typeof r=="string")cu(a,r);else{const i=Object.keys(r)[0],s=r[i];Array.isArray(s)?WC(a,i,s):cu(a,i,s)}}),o.appendChild(a)})}function WC(o,t,n){const a=document.createElement("select");a.classList.add(`ql-${t}`),n.forEach(r=>{const i=document.createElement("option");r!==!1?i.setAttribute("value",String(r)):i.setAttribute("selected","selected"),a.appendChild(i)}),o.appendChild(a)}c1.DEFAULTS={container:null,handlers:{clean(){const o=this.quill.getSelection();if(o!=null)if(o.length===0){const t=this.quill.getFormat();Object.keys(t).forEach(n=>{this.quill.scroll.query(n,fe.INLINE)!=null&&this.quill.format(n,!1,X.sources.USER)})}else this.quill.removeFormat(o,X.sources.USER)},direction(o){const{align:t}=this.quill.getFormat();o==="rtl"&&t==null?this.quill.format("align","right",X.sources.USER):!o&&t==="right"&&this.quill.format("align",!1,X.sources.USER),this.quill.format("direction",o,X.sources.USER)},indent(o){const t=this.quill.getSelection(),n=this.quill.getFormat(t),a=parseInt(n.indent||0,10);if(o==="+1"||o==="-1"){let r=o==="+1"?1:-1;n.direction==="rtl"&&(r*=-1),this.quill.format("indent",a+r,X.sources.USER)}},link(o){o===!0&&(o=prompt("Enter link URL:")),this.quill.format("link",o,X.sources.USER)},list(o){const t=this.quill.getSelection(),n=this.quill.getFormat(t);o==="check"?n.list==="checked"||n.list==="unchecked"?this.quill.format("list",!1,X.sources.USER):this.quill.format("list","unchecked",X.sources.USER):this.quill.format("list",o,X.sources.USER)}}};const YC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="13" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="9" y1="4" y2="4"/></svg>',JC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"/><line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"/></svg>',XC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"/></svg>',QC='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="15" x2="3" y1="14" y2="14"/><line class="ql-stroke" x1="15" x2="3" y1="4" y2="4"/></svg>',e_='<svg viewbox="0 0 18 18"><g class="ql-fill ql-color-label"><polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"/><rect height="1" width="1" x="4" y="4"/><polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"/><rect height="1" width="1" x="2" y="6"/><rect height="1" width="1" x="3" y="5"/><rect height="1" width="1" x="4" y="7"/><polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"/><rect height="1" width="1" x="2" y="12"/><rect height="1" width="1" x="2" y="9"/><rect height="1" width="1" x="2" y="15"/><polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"/><rect height="1" width="1" x="3" y="8"/><path d="M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z"/><path d="M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z"/><path d="M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z"/><rect height="1" width="1" x="12" y="2"/><rect height="1" width="1" x="11" y="3"/><path d="M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z"/><rect height="1" width="1" x="2" y="3"/><rect height="1" width="1" x="6" y="2"/><rect height="1" width="1" x="3" y="2"/><rect height="1" width="1" x="5" y="3"/><rect height="1" width="1" x="9" y="2"/><rect height="1" width="1" x="15" y="14"/><polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"/><rect height="1" width="1" x="13" y="7"/><rect height="1" width="1" x="15" y="5"/><rect height="1" width="1" x="14" y="6"/><rect height="1" width="1" x="15" y="8"/><rect height="1" width="1" x="14" y="9"/><path d="M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z"/><rect height="1" width="1" x="14" y="3"/><polygon points="12 6.868 12 6 11.62 6 12 6.868"/><rect height="1" width="1" x="15" y="2"/><rect height="1" width="1" x="12" y="5"/><rect height="1" width="1" x="13" y="4"/><polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"/><rect height="1" width="1" x="9" y="14"/><rect height="1" width="1" x="8" y="15"/><path d="M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z"/><rect height="1" width="1" x="5" y="15"/><path d="M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z"/><rect height="1" width="1" x="11" y="15"/><path d="M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z"/><rect height="1" width="1" x="14" y="15"/><rect height="1" width="1" x="15" y="11"/></g><polyline class="ql-stroke" points="5.5 13 9 5 12.5 13"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="11" y2="11"/></svg>',t_='<svg viewbox="0 0 18 18"><rect class="ql-fill ql-stroke" height="3" width="3" x="4" y="5"/><rect class="ql-fill ql-stroke" height="3" width="3" x="11" y="5"/><path class="ql-even ql-fill ql-stroke" d="M7,8c0,4.031-3,5-3,5"/><path class="ql-even ql-fill ql-stroke" d="M14,8c0,4.031-3,5-3,5"/></svg>',n_='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z"/><path class="ql-stroke" d="M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z"/></svg>',o_='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="5" x2="13" y1="3" y2="3"/><line class="ql-stroke" x1="6" x2="9.35" y1="12" y2="3"/><line class="ql-stroke" x1="11" x2="15" y1="11" y2="15"/><line class="ql-stroke" x1="15" x2="11" y1="11" y2="15"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="7" x="2" y="14"/></svg>',uu='<svg viewbox="0 0 18 18"><polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"/><polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"/><line class="ql-stroke" x1="10" x2="8" y1="5" y2="13"/></svg>',a_='<svg viewbox="0 0 18 18"><line class="ql-color-label ql-stroke ql-transparent" x1="3" x2="15" y1="15" y2="15"/><polyline class="ql-stroke" points="5.5 11 9 3 12.5 11"/><line class="ql-stroke" x1="11.63" x2="6.38" y1="9" y2="9"/></svg>',r_='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"/><line class="ql-stroke ql-fill" x1="15" x2="11" y1="4" y2="4"/><path class="ql-fill" d="M11,3a3,3,0,0,0,0,6h1V3H11Z"/><rect class="ql-fill" height="11" width="1" x="11" y="4"/><rect class="ql-fill" height="11" width="1" x="13" y="4"/></svg>',i_='<svg viewbox="0 0 18 18"><polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"/><line class="ql-stroke ql-fill" x1="9" x2="5" y1="4" y2="4"/><path class="ql-fill" d="M5,3A3,3,0,0,0,5,9H6V3H5Z"/><rect class="ql-fill" height="11" width="1" x="5" y="4"/><rect class="ql-fill" height="11" width="1" x="7" y="4"/></svg>',s_='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z"/><rect class="ql-fill" height="1.6" rx="0.8" ry="0.8" width="5" x="5.15" y="6.2"/><path class="ql-fill" d="M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z"/></svg>',l_='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z"/></svg>',c_='<svg viewBox="0 0 18 18"><path class="ql-fill" d="M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z"/></svg>',u_='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="13" y1="4" y2="4"/><line class="ql-stroke" x1="5" x2="11" y1="14" y2="14"/><line class="ql-stroke" x1="8" x2="10" y1="14" y2="4"/></svg>',d_='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="10" width="12" x="3" y="4"/><circle class="ql-fill" cx="6" cy="7" r="1"/><polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"/></svg>',p_='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"/></svg>',m_='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="3" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="5 7 5 11 3 9 5 7"/></svg>',f_='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="11" y1="7" y2="11"/><path class="ql-even ql-stroke" d="M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z"/><path class="ql-even ql-stroke" d="M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z"/></svg>',h_='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="6" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="6" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="6" x2="15" y1="14" y2="14"/><line class="ql-stroke" x1="3" x2="3" y1="4" y2="4"/><line class="ql-stroke" x1="3" x2="3" y1="9" y2="9"/><line class="ql-stroke" x1="3" x2="3" y1="14" y2="14"/></svg>',v_='<svg class="" viewbox="0 0 18 18"><line class="ql-stroke" x1="9" x2="15" y1="4" y2="4"/><polyline class="ql-stroke" points="3 4 4 5 6 3"/><line class="ql-stroke" x1="9" x2="15" y1="14" y2="14"/><polyline class="ql-stroke" points="3 14 4 15 6 13"/><line class="ql-stroke" x1="9" x2="15" y1="9" y2="9"/><polyline class="ql-stroke" points="3 9 4 10 6 8"/></svg>',g_='<svg viewbox="0 0 18 18"><line class="ql-stroke" x1="7" x2="15" y1="4" y2="4"/><line class="ql-stroke" x1="7" x2="15" y1="9" y2="9"/><line class="ql-stroke" x1="7" x2="15" y1="14" y2="14"/><line class="ql-stroke ql-thin" x1="2.5" x2="4.5" y1="5.5" y2="5.5"/><path class="ql-fill" d="M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z"/><path class="ql-stroke ql-thin" d="M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156"/><path class="ql-stroke ql-thin" d="M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109"/></svg>',b_='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z"/><path class="ql-fill" d="M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z"/></svg>',y_='<svg viewbox="0 0 18 18"><path class="ql-fill" d="M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z"/><path class="ql-fill" d="M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z"/></svg>',E_='<svg viewbox="0 0 18 18"><line class="ql-stroke ql-thin" x1="15.5" x2="2.5" y1="8.5" y2="9.5"/><path class="ql-fill" d="M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z"/><path class="ql-fill" d="M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z"/></svg>',w_='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="2" width="3" x="5" y="5"/><rect class="ql-fill" height="2" width="4" x="9" y="5"/><g class="ql-fill ql-transparent"><rect height="2" width="3" x="5" y="8"/><rect height="2" width="4" x="9" y="8"/><rect height="2" width="3" x="5" y="11"/><rect height="2" width="4" x="9" y="11"/></g></svg>',C_='<svg viewbox="0 0 18 18"><path class="ql-stroke" d="M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3"/><rect class="ql-fill" height="1" rx="0.5" ry="0.5" width="12" x="3" y="15"/></svg>',__='<svg viewbox="0 0 18 18"><rect class="ql-stroke" height="12" width="12" x="3" y="3"/><rect class="ql-fill" height="12" width="1" x="5" y="3"/><rect class="ql-fill" height="12" width="1" x="12" y="3"/><rect class="ql-fill" height="2" width="8" x="5" y="8"/><rect class="ql-fill" height="1" width="3" x="3" y="5"/><rect class="ql-fill" height="1" width="3" x="3" y="7"/><rect class="ql-fill" height="1" width="3" x="3" y="10"/><rect class="ql-fill" height="1" width="3" x="3" y="12"/><rect class="ql-fill" height="1" width="3" x="12" y="5"/><rect class="ql-fill" height="1" width="3" x="12" y="7"/><rect class="ql-fill" height="1" width="3" x="12" y="10"/><rect class="ql-fill" height="1" width="3" x="12" y="12"/></svg>',zo={align:{"":YC,center:JC,right:XC,justify:QC},background:e_,blockquote:t_,bold:n_,clean:o_,code:uu,"code-block":uu,color:a_,direction:{"":r_,rtl:i_},formula:s_,header:{1:l_,2:c_},italic:u_,image:d_,indent:{"+1":p_,"-1":m_},link:f_,list:{bullet:h_,check:v_,ordered:g_},script:{sub:b_,super:y_},strike:E_,table:w_,underline:C_,video:__},N_='<svg viewbox="0 0 18 18"><polygon class="ql-stroke" points="7 11 9 13 11 11 7 11"/><polygon class="ql-stroke" points="7 7 9 5 11 7 7 7"/></svg>';let du=0;function pu(o,t){o.setAttribute(t,`${o.getAttribute(t)!=="true"}`)}class qr{constructor(t){this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",()=>{this.togglePicker()}),this.label.addEventListener("keydown",n=>{switch(n.key){case"Enter":this.togglePicker();break;case"Escape":this.escape(),n.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}togglePicker(){this.container.classList.toggle("ql-expanded"),pu(this.label,"aria-expanded"),pu(this.options,"aria-hidden")}buildItem(t){const n=document.createElement("span");n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item");const a=t.getAttribute("value");return a&&n.setAttribute("data-value",a),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",()=>{this.selectItem(n,!0)}),n.addEventListener("keydown",r=>{switch(r.key){case"Enter":this.selectItem(n,!0),r.preventDefault();break;case"Escape":this.escape(),r.preventDefault();break}}),n}buildLabel(){const t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=N_,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}buildOptions(){const t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id=`ql-picker-options-${du}`,du+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,Array.from(this.select.options).forEach(n=>{const a=this.buildItem(n);t.appendChild(a),n.selected===!0&&this.selectItem(a)}),this.container.appendChild(t)}buildPicker(){Array.from(this.select.attributes).forEach(t=>{this.container.setAttribute(t.name,t.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}escape(){this.close(),setTimeout(()=>this.label.focus(),1)}close(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}selectItem(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=this.container.querySelector(".ql-selected");t!==a&&(a!=null&&a.classList.remove("ql-selected"),t!=null&&(t.classList.add("ql-selected"),this.select.selectedIndex=Array.from(t.parentNode.children).indexOf(t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),n&&(this.select.dispatchEvent(new Event("change")),this.close())))}update(){let t;if(this.select.selectedIndex>-1){const a=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(a)}else this.selectItem(null);const n=t!=null&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}class C3 extends qr{constructor(t,n){super(t),this.label.innerHTML=n,this.container.classList.add("ql-color-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).slice(0,7).forEach(a=>{a.classList.add("ql-primary")})}buildItem(t){const n=super.buildItem(t);return n.style.backgroundColor=t.getAttribute("value")||"",n}selectItem(t,n){super.selectItem(t,n);const a=this.label.querySelector(".ql-color-label"),r=t&&t.getAttribute("data-value")||"";a&&(a.tagName==="line"?a.style.stroke=r:a.style.fill=r)}}class _3 extends qr{constructor(t,n){super(t),this.container.classList.add("ql-icon-picker"),Array.from(this.container.querySelectorAll(".ql-picker-item")).forEach(a=>{a.innerHTML=n[a.getAttribute("data-value")||""]}),this.defaultItem=this.container.querySelector(".ql-selected"),this.selectItem(this.defaultItem)}selectItem(t,n){super.selectItem(t,n);const a=t||this.defaultItem;if(a!=null){if(this.label.innerHTML===a.innerHTML)return;this.label.innerHTML=a.innerHTML}}}const S_=o=>{const{overflowY:t}=getComputedStyle(o,null);return t!=="visible"&&t!=="clip"};class N3{constructor(t,n){this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,S_(this.quill.root)&&this.quill.root.addEventListener("scroll",()=>{this.root.style.marginTop=`${-1*this.quill.root.scrollTop}px`}),this.hide()}hide(){this.root.classList.add("ql-hidden")}position(t){const n=t.left+t.width/2-this.root.offsetWidth/2,a=t.bottom+this.quill.root.scrollTop;this.root.style.left=`${n}px`,this.root.style.top=`${a}px`,this.root.classList.remove("ql-flip");const r=this.boundsContainer.getBoundingClientRect(),i=this.root.getBoundingClientRect();let s=0;if(i.right>r.right&&(s=r.right-i.right,this.root.style.left=`${n+s}px`),i.left<r.left&&(s=r.left-i.left,this.root.style.left=`${n+s}px`),i.bottom>r.bottom){const l=i.bottom-i.top,c=t.bottom-t.top+l;this.root.style.top=`${a-c}px`,this.root.classList.add("ql-flip")}return s}show(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}const T_=[!1,"center","right","justify"],k_=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],x_=[!1,"serif","monospace"],V_=["1","2","3",!1],A_=["small",!1,"large","huge"];class sa extends ro{constructor(t,n){super(t,n);const a=r=>{if(!document.body.contains(t.root)){document.body.removeEventListener("click",a);return}this.tooltip!=null&&!this.tooltip.root.contains(r.target)&&document.activeElement!==this.tooltip.textbox&&!this.quill.hasFocus()&&this.tooltip.hide(),this.pickers!=null&&this.pickers.forEach(i=>{i.container.contains(r.target)||i.close()})};t.emitter.listenDOM("click",document.body,a)}addModule(t){const n=super.addModule(t);return t==="toolbar"&&this.extendToolbar(n),n}buildButtons(t,n){Array.from(t).forEach(a=>{(a.getAttribute("class")||"").split(/\s+/).forEach(i=>{if(i.startsWith("ql-")&&(i=i.slice(3),n[i]!=null))if(i==="direction")a.innerHTML=n[i][""]+n[i].rtl;else if(typeof n[i]=="string")a.innerHTML=n[i];else{const s=a.value||"";s!=null&&n[i][s]&&(a.innerHTML=n[i][s])}})})}buildPickers(t,n){this.pickers=Array.from(t).map(r=>{if(r.classList.contains("ql-align")&&(r.querySelector("option")==null&&Ao(r,T_),typeof n.align=="object"))return new _3(r,n.align);if(r.classList.contains("ql-background")||r.classList.contains("ql-color")){const i=r.classList.contains("ql-background")?"background":"color";return r.querySelector("option")==null&&Ao(r,k_,i==="background"?"#ffffff":"#000000"),new C3(r,n[i])}return r.querySelector("option")==null&&(r.classList.contains("ql-font")?Ao(r,x_):r.classList.contains("ql-header")?Ao(r,V_):r.classList.contains("ql-size")&&Ao(r,A_)),new qr(r)});const a=()=>{this.pickers.forEach(r=>{r.update()})};this.quill.on(de.events.EDITOR_CHANGE,a)}}sa.DEFAULTS=tn({},ro.DEFAULTS,{modules:{toolbar:{handlers:{formula(){this.quill.theme.tooltip.edit("formula")},image(){let o=this.container.querySelector("input.ql-image[type=file]");o==null&&(o=document.createElement("input"),o.setAttribute("type","file"),o.setAttribute("accept",this.quill.uploader.options.mimetypes.join(", ")),o.classList.add("ql-image"),o.addEventListener("change",()=>{const t=this.quill.getSelection(!0);this.quill.uploader.upload(t,o.files),o.value=""}),this.container.appendChild(o)),o.click()},video(){this.quill.theme.tooltip.edit("video")}}}}});class S3 extends N3{constructor(t,n){super(t,n),this.textbox=this.root.querySelector('input[type="text"]'),this.listen()}listen(){this.textbox.addEventListener("keydown",t=>{t.key==="Enter"?(this.save(),t.preventDefault()):t.key==="Escape"&&(this.cancel(),t.preventDefault())})}cancel(){this.hide(),this.restoreFocus()}edit(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),this.textbox==null)return;n!=null?this.textbox.value=n:t!==this.root.getAttribute("data-mode")&&(this.textbox.value="");const a=this.quill.getBounds(this.quill.selection.savedRange);a!=null&&this.position(a),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute(`data-${t}`)||""),this.root.setAttribute("data-mode",t)}restoreFocus(){this.quill.focus({preventScroll:!0})}save(){let{value:t}=this.textbox;switch(this.root.getAttribute("data-mode")){case"link":{const{scrollTop:n}=this.quill.root;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,de.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,de.sources.USER)),this.quill.root.scrollTop=n;break}case"video":t=D_(t);case"formula":{if(!t)break;const n=this.quill.getSelection(!0);if(n!=null){const a=n.index+n.length;this.quill.insertEmbed(a,this.root.getAttribute("data-mode"),t,de.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(a+1," ",de.sources.USER),this.quill.setSelection(a+2,de.sources.USER)}break}}this.textbox.value="",this.hide()}}function D_(o){let t=o.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||o.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?`${t[1]||"https"}://www.youtube.com/embed/${t[2]}?showinfo=0`:(t=o.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?`${t[1]||"https"}://player.vimeo.com/video/${t[2]}/`:o}function Ao(o,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;t.forEach(a=>{const r=document.createElement("option");a===n?r.setAttribute("selected","selected"):r.setAttribute("value",String(a)),o.appendChild(r)})}const R_=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]];class T3 extends S3{constructor(t,n){super(t,n),this.quill.on(de.events.EDITOR_CHANGE,(a,r,i,s)=>{if(a===de.events.SELECTION_CHANGE)if(r!=null&&r.length>0&&s===de.sources.USER){this.show(),this.root.style.left="0px",this.root.style.width="",this.root.style.width=`${this.root.offsetWidth}px`;const l=this.quill.getLines(r.index,r.length);if(l.length===1){const c=this.quill.getBounds(r);c!=null&&this.position(c)}else{const c=l[l.length-1],u=this.quill.getIndex(c),d=Math.min(c.length()-1,r.index+r.length-u),p=this.quill.getBounds(new Sn(u,d));p!=null&&this.position(p)}}else document.activeElement!==this.textbox&&this.quill.hasFocus()&&this.hide()})}listen(){super.listen(),this.root.querySelector(".ql-close").addEventListener("click",()=>{this.root.classList.remove("ql-editing")}),this.quill.on(de.events.SCROLL_OPTIMIZE,()=>{setTimeout(()=>{if(this.root.classList.contains("ql-hidden"))return;const t=this.quill.getSelection();if(t!=null){const n=this.quill.getBounds(t);n!=null&&this.position(n)}},1)})}cancel(){this.show()}position(t){const n=super.position(t),a=this.root.querySelector(".ql-tooltip-arrow");return a.style.marginLeft="",n!==0&&(a.style.marginLeft=`${-1*n-a.offsetWidth/2}px`),n}}H(T3,"TEMPLATE",['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""));class k3 extends sa{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=R_),super(t,n),this.quill.container.classList.add("ql-bubble")}extendToolbar(t){this.tooltip=new T3(this.quill,this.options.bounds),t.container!=null&&(this.tooltip.root.appendChild(t.container),this.buildButtons(t.container.querySelectorAll("button"),zo),this.buildPickers(t.container.querySelectorAll("select"),zo))}}k3.DEFAULTS=tn({},sa.DEFAULTS,{modules:{toolbar:{handlers:{link(o){o?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});const I_=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]];class x3 extends S3{constructor(){super(...arguments);H(this,"preview",this.root.querySelector("a.ql-preview"))}listen(){super.listen(),this.root.querySelector("a.ql-action").addEventListener("click",n=>{this.root.classList.contains("ql-editing")?this.save():this.edit("link",this.preview.textContent),n.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",n=>{if(this.linkRange!=null){const a=this.linkRange;this.restoreFocus(),this.quill.formatText(a,"link",!1,de.sources.USER),delete this.linkRange}n.preventDefault(),this.hide()}),this.quill.on(de.events.SELECTION_CHANGE,(n,a,r)=>{if(n!=null){if(n.length===0&&r===de.sources.USER){const[i,s]=this.quill.scroll.descendant(en,n.index);if(i!=null){this.linkRange=new Sn(n.index-s,i.length());const l=en.formats(i.domNode);this.preview.textContent=l,this.preview.setAttribute("href",l),this.show();const c=this.quill.getBounds(this.linkRange);c!=null&&this.position(c);return}}else delete this.linkRange;this.hide()}})}show(){super.show(),this.root.removeAttribute("data-mode")}}H(x3,"TEMPLATE",['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""));class V3 extends sa{constructor(t,n){n.modules.toolbar!=null&&n.modules.toolbar.container==null&&(n.modules.toolbar.container=I_),super(t,n),this.quill.container.classList.add("ql-snow")}extendToolbar(t){t.container!=null&&(t.container.classList.add("ql-snow"),this.buildButtons(t.container.querySelectorAll("button"),zo),this.buildPickers(t.container.querySelectorAll("select"),zo),this.tooltip=new x3(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"k",shortKey:!0},(n,a)=>{t.handlers.link.call(t,!a.format.link)}))}}V3.DEFAULTS=tn({},sa.DEFAULTS,{modules:{toolbar:{handlers:{link(o){if(o){const t=this.quill.getSelection();if(t==null||t.length===0)return;let n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&n.indexOf("mailto:")!==0&&(n=`mailto:${n}`);const{tooltip:a}=this.quill.theme;a.edit("link",n)}else this.quill.format("link",!1)}}}}});X.register({"attributors/attribute/direction":l3,"attributors/class/align":r3,"attributors/class/background":eC,"attributors/class/color":Qw,"attributors/class/direction":c3,"attributors/class/font":p3,"attributors/class/size":f3,"attributors/style/align":i3,"attributors/style/background":o1,"attributors/style/color":n1,"attributors/style/direction":u3,"attributors/style/font":m3,"attributors/style/size":h3},!0);X.register({"formats/align":r3,"formats/direction":c3,"formats/indent":HC,"formats/background":o1,"formats/color":n1,"formats/font":p3,"formats/size":f3,"formats/blockquote":qs,"formats/code-block":Nt,"formats/header":Us,"formats/list":ia,"formats/bold":Zo,"formats/code":a1,"formats/italic":Hs,"formats/link":en,"formats/script":Zs,"formats/strike":zs,"formats/underline":Gs,"formats/formula":Ha,"formats/image":ZC,"formats/video":Za,"modules/syntax":w3,"modules/table":GC,"modules/toolbar":c1,"themes/bubble":k3,"themes/snow":V3,"ui/icons":zo,"ui/picker":qr,"ui/icon-picker":_3,"ui/color-picker":C3,"ui/tooltip":N3},!0);const O_={class:"quill-editor_footer"},$_=e.defineComponent({name:"FulltextInput",__name:"FulltextInput",props:{content:{type:String,default:""},disabled:{type:Boolean,default:!1},contentType:{type:String,default:"html"},validator:{type:Function,default:void 0}},emits:["change","update:content","textChange"],setup(o,{expose:t,emit:n}){const a=o,r=n,i=e.shallowRef(),s=e.shallowRef(),l=e.shallowRef(),c=e.shallowRef(),u=e.ref(!1),d=e.shallowRef(),p=e.shallowRef(),m=e.shallowRef(),f=()=>{const S=D();if(u.value){u.value=!1,e.nextTick(()=>_(S));return}u.value=!0,e.nextTick(()=>{m.value||(m.value=y(d.value)),_(S)})},h={container:[[{font:[]},{size:[]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{header:"1"},{header:"2"},"blockquote","code-block"],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"}],["direction",{align:[]}],["clean"],["fullscreen"]],handlers:{fullscreen:f}},y=S=>new X(S,{theme:"snow",modules:{toolbar:h}}),g=(S,k)=>{const N=u.value?m.value:c.value;return(N==null?void 0:N.getText(S,k))??""},C=(S,k="api")=>{const N=u.value?m.value:c.value;N==null||N.setText(S,k)},x=()=>{const S=u.value?m.value:c.value;return(S==null?void 0:S.root.innerText)??""},D=()=>{const S=u.value?m.value:c.value;return(S==null?void 0:S.root.innerHTML)??""},_=S=>{const k=u.value?m.value:c.value;k&&(k.root.innerHTML=S)},T=(S,k="api")=>{const N=u.value?m.value:c.value,A=N==null?void 0:N.clipboard.convert(S);A&&(N==null||N.setContents(A,k))},E=()=>{const S=x().trim();r("update:content",S?D():""),r("change",S?D():"")},w=()=>{E(),u.value=!1},b=e.computed(()=>{var S;return a.validator&&typeof a.validator=="function"?a.validator():!!((S=a.content)!=null&&S.length)});return e.onMounted(()=>{c.value=y(l.value),a.content&&_(a.content)}),e.onBeforeUnmount(()=>{var S,k;(S=l.value)==null||S.remove(),c.value=void 0,(k=d.value)==null||k.remove(),m.value=void 0}),t({getHTML:D,setHTML:_,getText:g,setText:C,pasteHTML:T}),(S,k)=>{const N=e.resolveComponent("icon-check-circle-fill"),A=e.resolveComponent("icon-exclamation-circle-fill"),O=e.resolveComponent("a-button"),$=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",{ref_key:"parentEl",ref:i,class:"quill-editor"},[e.createElementVNode("div",{ref_key:"toolbarEl",ref:s,class:"quill-editor_toolbar"},null,512),e.createElementVNode("div",{ref_key:"editorEl",ref:l,class:"quill-editor_content"},null,512),e.createElementVNode("div",O_,[e.createElementVNode("div",{class:e.normalizeClass(["a-validate__suffix",e.unref(b)?"feedback-success":"feedback-error"])},[e.unref(b)?(e.openBlock(),e.createBlock(N,{key:0,size:"16"})):(e.openBlock(),e.createBlock(A,{key:1,size:"16"}))],2),e.renderSlot(S.$slots,"footer"),e.createVNode(O,{type:"primary",onClick:E},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(S.$t("Submit")),1)]),_:1})])],512),e.createVNode($,{visible:e.unref(u),"onUpdate:visible":k[0]||(k[0]=V=>e.isRef(u)?u.value=V:null),width:"940px",title:S.$t("Mail content"),"hide-cancel":!0,"on-cancel":f,"on-before-ok":w},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"fullscreenParentEl",ref:p,class:"quill-editor is-fullscreen"},[e.createElementVNode("div",{ref_key:"fullscreenEditorEl",ref:d,class:"quill-editor_content"},null,512)],512)]),_:1},8,["visible","title"])],64)}}}),L_=e.defineComponent({name:"MailServiceTask",__name:"MailServiceTask",setup(o){const t=e.ref(80),n=e.inject(De),a=e.inject(we),r=()=>{const x=n.value,D=a.value,_=D.get("modeling");return{element:x,modeling:_,bpmnModeler:D}},i=Ae({delay:0,trailing:!0},(x,D)=>{const{element:_,modeling:T,bpmnModeler:E}=r(),b=ge(_.businessObject,"Field").filter(k=>k.name===x)[0],S=x==="subject"?"string":"expression";if(b){if(x==="saveResponseParameters"&&D==="false")return it(T,_,b,{[S]:D,responseVariableName:void 0});Fe(T,_,b,S,D)}else Dt(E,_,_.businessObject,Ve(E,"Field",{name:x,[S]:D}))}),s=e.ref(),l=e.ref([]),c=e.ref(),u=e.ref(),d=e.ref(),p=e.shallowRef(),m=Ae({delay:0,trailing:!0},()=>i("subject",u.value)),f=Ae({delay:0,trailing:!0},x=>{const D=[],{element:_,bpmnModeler:T}=r(),E=ge(_.businessObject,"Field"),w=E.filter(S=>S.name==="html")[0],b=E.filter(S=>S.name==="charset")[0];w?D.push({cmd:"element.updateModdleProperties",context:{element:_,moddleElement:w,properties:{expression:x}}}):D.push(...Mt(T,_,_.businessObject,Ve(T,"Field",{name:"html",expression:x}))),b||D.push(...Mt(T,_,_.businessObject,Ve(T,"Field",{name:"charset",string:"utf-8"}))),Te(T,D)}),h=()=>{const{element:x,bpmnModeler:D}=r(),_=l.value.map(E=>E.email).join(","),T=[xt(a.value,x,"Field","",{name:"to",expression:_}),xt(a.value,x,"IdmCandidateUsers",JSON.stringify(l.value))];Te(D,T)},y=()=>{const{element:x,bpmnModeler:D}=r(),_=l.value.map(E=>E.email).join(","),T=[xt(a.value,x,"Field","",{name:"to",expression:_}),xt(a.value,x,"IdmCandidateUsers",c.value)];Te(D,T)},g=()=>{var E,w;C();const x=n==null?void 0:n.value,D=x==null?void 0:x.businessObject;if(!D)return;const _=ge(D,"Field");for(const b of _)switch(b.name){case"to":s.value=b.get("expression");break;case"subject":u.value=b.get("string");break;case"html":d.value=b.get("expression"),d.value&&((E=p.value)==null||E.setHTML(d.value));break}const T=(w=ge(D,"IdmCandidateUsers"))==null?void 0:w[0];T&&(l.value=JSON.parse(T.get("body")||"[]"))},C=()=>{s.value=u.value=d.value=void 0,l.value=[]};return Ie(g),(x,D)=>{const _=sn,T=st,E=xr,w=qe,b=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(b,{key:"MailServiceTask"},{header:e.withCtx(()=>[e.createVNode(_,{name:"mail-service-task",size:16}),e.createTextVNode(" "+e.toDisplayString(x.$t("MailServiceTask")),1)]),default:e.withCtx(()=>[e.createVNode(w,{"label-width":e.unref(t),label:x.$t("MailTo")},{default:e.withCtx(()=>[e.createVNode(E,{data:e.unref(l),"onUpdate:data":D[1]||(D[1]=S=>e.isRef(l)?l.value=S:null),onChange:h},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(c),"onUpdate:modelValue":D[0]||(D[0]=S=>e.isRef(c)?c.value=S:null),placeholder:x.$t("Please enter or select a receive person"),onInput:y},null,8,["modelValue","placeholder"])]),_:1},8,["data"])]),_:1},8,["label-width","label"]),e.createVNode(w,{"label-width":e.unref(t),label:x.$t("MailSubject")},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(u),"onUpdate:modelValue":D[2]||(D[2]=S=>e.isRef(u)?u.value=S:null),placeholder:x.$t("Please enter a title"),onInput:e.unref(m)},null,8,["modelValue","placeholder","onInput"])]),_:1},8,["label-width","label"]),e.createVNode(w,{"label-width":e.unref(t),label:x.$t("MailHtml")},{default:e.withCtx(()=>[e.createVNode($_,{ref_key:"editor",ref:p,content:e.unref(d),"onUpdate:content":D[3]||(D[3]=S=>e.isRef(d)?d.value=S:null),onChange:e.unref(f)},null,8,["content","onChange"])]),_:1},8,["label-width","label"])]),_:1})}}}),B_=e.defineComponent({name:"MessageServiceTask",__name:"MessageServiceTask",setup(o){const t=e.ref(80),n=e.inject(De),a=e.inject(we),r=()=>{const m=n.value,f=a.value,h=f.get("modeling");return{element:m,modeling:h,bpmnModeler:f}},i=Ae({delay:0,trailing:!0},(m,f)=>{const{element:h,modeling:y,bpmnModeler:g}=r(),x=ge(h.businessObject,"Field").filter(_=>_.name===m)[0],D=m==="params"?"expression":"string";if(x){if(m==="saveResponseParameters"&&f==="false")return it(y,h,x,{[D]:f,responseVariableName:void 0});Fe(y,h,x,D,f)}else Dt(g,h,h.businessObject,Ve(g,"Field",{name:m,[D]:f}))}),s=e.ref(),l=e.ref(),c=()=>i("queue",s.value),u=()=>i("params",l.value),d=()=>{p();const m=n==null?void 0:n.value,f=m==null?void 0:m.businessObject;if(!f)return;const h=ge(f,"Field");for(const y of h)switch(y.name){case"queue":s.value=y.get("string");break;case"params":l.value=y.get("expression");break}},p=()=>{s.value=l.value=void 0};return Ie(d),(m,f)=>{const h=sn,y=st,g=qe,C=Dr,x=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(x,{key:"MqServiceTask"},{header:e.withCtx(()=>[e.createVNode(h,{name:"mq-service-task",size:16}),e.createTextVNode(" "+e.toDisplayString(m.$t("MqServiceTask")),1)]),default:e.withCtx(()=>[e.createVNode(g,{"label-width":e.unref(t),label:m.$t("QueueName")},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:e.unref(s),"onUpdate:modelValue":f[0]||(f[0]=D=>e.isRef(s)?s.value=D:null),placeholder:m.$t("Please enter a queue name"),onInput:c},null,8,["modelValue","placeholder"])]),_:1},8,["label-width","label"]),e.createVNode(g,{"label-width":e.unref(t),label:m.$t("ParamsContent")},{default:e.withCtx(()=>[e.createVNode(C,{value:e.unref(l),"onUpdate:value":f[1]||(f[1]=D=>e.isRef(l)?l.value=D:null),onChange:u},null,8,["value"])]),_:1},8,["label-width","label"])]),_:1})}}}),P_=e.defineComponent({name:"RestServiceTask",__name:"RestServiceTask",setup(o){const t=e.ref(100),n=e.inject(De),a=e.inject(we),r=e.ref(),i=e.ref(),s=e.ref(),l=e.ref(),c=e.ref(),u=e.ref(),d=e.ref(),p=()=>{const E=n.value,w=a.value,b=w.get("modeling");return{element:E,modeling:b,bpmnModeler:w}},m=Ae({delay:0,trailing:!0},(E,w)=>{const{element:b,modeling:S,bpmnModeler:k}=p(),A=ge(b.businessObject,"Field").filter($=>$.name===E)[0],O=E==="requestBody"?"expression":"string";if(A){if(E==="saveResponseParameters"&&w==="false")return it(S,b,A,{[O]:w,responseVariableName:void 0});Fe(S,b,A,O,w)}else Dt(k,b,b.businessObject,Ve(k,"Field",{name:E,[O]:w}))}),f=()=>m("requestUrl",r.value),h=()=>m("requestMethod",i.value),y=()=>m("requestHeaders",s.value),g=()=>m("requestBody",l.value),C=()=>m("ignoreException",c.value),x=()=>m("saveResponseParameters",u.value),D=()=>m("responseVariableName",d.value),_=()=>{r.value=i.value=void 0,l.value=c.value=s.value=void 0,u.value=d.value=void 0};return Ie(()=>{_();const E=n==null?void 0:n.value,w=E==null?void 0:E.businessObject;if(!w)return;const b=ge(w,"Field");for(const S of b)switch(S.name){case"requestUrl":r.value=S.get("string");break;case"requestMethod":i.value=S.get("string");break;case"requestBody":l.value=S.get("expression");break;case"ignoreException":c.value=S.get("string");break;case"requestHeaders":s.value=S.get("string");break;case"saveResponseParameters":u.value=S.get("string");break;case"responseVariableName":d.value=S.get("string");break}}),(E,w)=>{const b=sn,S=st,k=qe,N=e.resolveComponent("a-radio"),A=mo,O=Dr,$=e.resolveComponent("a-switch"),V=e.resolveComponent("a-input"),I=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(I,{key:"RestServiceTask"},{header:e.withCtx(()=>[e.createVNode(b,{name:"rest-service-task",size:16}),e.createTextVNode(" "+e.toDisplayString(E.$t("RestServiceTask")),1)]),default:e.withCtx(()=>[e.createVNode(k,{"label-width":e.unref(t),label:E.$t("RequestUrl")},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:e.unref(r),"onUpdate:modelValue":w[0]||(w[0]=B=>e.isRef(r)?r.value=B:null),placeholder:E.$t("Please enter a url"),onInput:f},null,8,["modelValue","placeholder"])]),_:1},8,["label-width","label"]),e.createVNode(k,{"label-width":e.unref(t),label:E.$t("RequestMethod")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(i),"onUpdate:modelValue":w[1]||(w[1]=B=>e.isRef(i)?i.value=B:null),onChange:h},{default:e.withCtx(()=>[e.createVNode(N,{value:"GET"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.$t("Get")),1)]),_:1}),e.createVNode(N,{value:"POST"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.$t("Post")),1)]),_:1}),e.createVNode(N,{value:"PUT"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.$t("Put")),1)]),_:1}),e.createVNode(N,{value:"DELETE"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.$t("Delete")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label-width","label"]),e.createVNode(k,{"label-width":e.unref(t),label:E.$t("RequestHeaders")},{default:e.withCtx(()=>[e.createVNode(O,{value:e.unref(s),"onUpdate:value":w[2]||(w[2]=B=>e.isRef(s)?s.value=B:null),placeholder:E.$t("Please enter the request header information"),onChange:y},null,8,["value","placeholder"])]),_:1},8,["label-width","label"]),e.createVNode(k,{"label-width":e.unref(t),label:E.$t("ParamsContent")},{default:e.withCtx(()=>[e.createVNode(O,{value:e.unref(l),"onUpdate:value":w[3]||(w[3]=B=>e.isRef(l)?l.value=B:null),onChange:g},null,8,["value"])]),_:1},8,["label-width","label"]),e.createVNode(k,{"label-width":e.unref(t),label:E.$t("SaveResponseParameters")},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(u),"onUpdate:modelValue":w[4]||(w[4]=B=>e.isRef(u)?u.value=B:null),"checked-value":"true","unchecked-value":"false",onChange:x},null,8,["modelValue"])]),_:1},8,["label-width","label"]),e.unref(u)==="true"?(e.openBlock(),e.createBlock(k,{key:0,"label-width":e.unref(t),label:E.$t("ResponseVariableName")},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:e.unref(d),"onUpdate:modelValue":w[5]||(w[5]=B=>e.isRef(d)?d.value=B:null),placeholder:E.$t("Please enter a variable name"),onInput:D},null,8,["modelValue","placeholder"])]),_:1},8,["label-width","label"])):e.createCommentVNode("",!0),e.createVNode(k,{"label-width":e.unref(t),label:E.$t("IgnoreError")},{default:e.withCtx(()=>[e.createVNode($,{modelValue:e.unref(c),"onUpdate:modelValue":w[6]||(w[6]=B=>e.isRef(c)?c.value=B:null),"checked-value":"true","unchecked-value":"false",onChange:C},null,8,["modelValue"])]),_:1},8,["label-width","label"])]),_:1})}}}),M_=e.defineComponent({name:"HttpServiceTask",__name:"HttpServiceTask",setup(o){const t=e.ref(146),n=e.inject(De),a=e.inject(we),r=e.ref(),i=e.ref(),s=e.ref(),l=e.ref(),c=e.ref(),u=e.ref(),d=e.ref(),p=e.ref(),m=e.ref(),f=()=>{const k=n.value,N=a.value,A=N.get("modeling");return{element:k,modeling:A,bpmnModeler:N}},h=Ae({delay:0,trailing:!0},(k,N)=>{const{element:A,modeling:O,bpmnModeler:$}=f(),I=ge(A.businessObject,"Field").filter(B=>B.name===k)[0];I?Fe(O,A,I,"string",N):Dt($,A,A.businessObject,Ve($,"Field",{name:k,string:N}))}),y=()=>h("requestUrl",r.value),g=()=>{const k=JSON.parse(s.value||"{}");k["Content-Type"]="application/json",h("requestHeaders",JSON.stringify(k))},C=()=>h("requestBody",l.value),x=()=>h("ignoreException",u.value),D=()=>h("responseVariableName",c.value),_=()=>h("disallowRedirects",d.value),T=()=>h("saveResponseParametersTransient",p.value),E=()=>h("saveResponseVariableAsJson",m.value),w=()=>{const k=[],{element:N,bpmnModeler:A}=f(),O=ge(N.businessObject,"Field"),$=O.filter(B=>B.name==="requestMethod")[0],V=O.filter(B=>B.name==="requestHeaders")[0];$?k.push({cmd:"element.updateModdleProperties",context:{element:N,moddleElement:$,properties:{string:i.value}}}):k.push(...Mt(A,N,N.businessObject,Ve(A,"Field",{name:"requestMethod",string:i.value})));const I=JSON.parse(s.value||"{}");I["Content-Type"]="application/json",V||k.push(...Mt(A,N,N.businessObject,Ve(A,"Field",{name:"requestHeaders",string:JSON.stringify(I)}))),Te(A,k)},b=()=>{r.value=i.value=void 0,d.value=p.value=void 0,l.value=u.value=void 0,m.value=c.value=void 0};return Ie(()=>{b();const k=n==null?void 0:n.value,N=k==null?void 0:k.businessObject;if(!N)return;const A=ge(N,"Field");for(const O of A)switch(O.name){case"requestUrl":r.value=O.get("string");break;case"requestMethod":i.value=O.get("string");break;case"requestBody":l.value=O.get("string");break;case"requestHeaders":const $=JSON.parse(O.get("string")||"{}");$&&(delete $["Content-Type"],s.value=JSON.stringify($));break;case"responseVariableName":c.value=O.get("string");break;case"ignoreException":u.value=O.get("string");break;case"disallowRedirects":d.value=O.get("string");break;case"saveResponseParametersTransient":p.value=O.get("string");break;case"saveResponseVariableAsJson":m.value=O.get("string");break}}),(k,N)=>{const A=sn,O=st,$=qe,V=e.resolveComponent("a-radio"),I=mo,B=Dr,Z=e.resolveComponent("a-input"),L=e.resolveComponent("a-switch"),F=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(F,{key:"HttpServiceTask"},{header:e.withCtx(()=>[e.createVNode(A,{name:"http-service-task",size:16}),e.createTextVNode(" "+e.toDisplayString(k.$t("HttpServiceTask")),1)]),default:e.withCtx(()=>[e.createVNode($,{"label-width":e.unref(t),label:k.$t("RequestUrl")},{default:e.withCtx(()=>[e.createVNode(O,{modelValue:e.unref(r),"onUpdate:modelValue":N[0]||(N[0]=G=>e.isRef(r)?r.value=G:null),placeholder:k.$t("Please enter a url"),onInput:y},null,8,["modelValue","placeholder"])]),_:1},8,["label-width","label"]),e.createVNode($,{"label-width":e.unref(t),label:k.$t("RequestMethod")},{default:e.withCtx(()=>[e.createVNode(I,{modelValue:e.unref(i),"onUpdate:modelValue":N[1]||(N[1]=G=>e.isRef(i)?i.value=G:null),type:"button",onChange:w},{default:e.withCtx(()=>[e.createVNode(V,{value:"GET"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("HttpGet")),1)]),_:1}),e.createVNode(V,{value:"POST"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("HttpPost")),1)]),_:1}),e.createVNode(V,{value:"PUT"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("HttpPut")),1)]),_:1}),e.createVNode(V,{value:"DELETE"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("HttpDelete")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label-width","label"]),e.createVNode($,{"label-width":e.unref(t),label:k.$t("RequestHeaders")},{default:e.withCtx(()=>[e.createVNode(B,{value:e.unref(s),"onUpdate:value":N[2]||(N[2]=G=>e.isRef(s)?s.value=G:null),onChange:g},null,8,["value"])]),_:1},8,["label-width","label"]),e.createVNode($,{"label-width":e.unref(t),label:k.$t("ParamsContent")},{default:e.withCtx(()=>[e.createVNode(B,{value:e.unref(l),"onUpdate:value":N[3]||(N[3]=G=>e.isRef(l)?l.value=G:null),onChange:C},null,8,["value"])]),_:1},8,["label-width","label"]),e.createVNode($,{"label-width":e.unref(t),label:k.$t("ResponseVariableName")},{default:e.withCtx(()=>[e.createVNode(Z,{modelValue:e.unref(c),"onUpdate:modelValue":N[4]||(N[4]=G=>e.isRef(c)?c.value=G:null),placeholder:k.$t("Please enter a variable name"),onInput:D},null,8,["modelValue","placeholder"])]),_:1},8,["label-width","label"]),e.createVNode($,{"label-width":e.unref(t),label:k.$t("IgnoreError")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(u),"onUpdate:modelValue":N[5]||(N[5]=G=>e.isRef(u)?u.value=G:null),"checked-value":"true","unchecked-value":"false",onChange:x},null,8,["modelValue"])]),_:1},8,["label-width","label"]),e.createVNode($,{"label-width":e.unref(t),label:k.$t("DisallowRedirects")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(d),"onUpdate:modelValue":N[6]||(N[6]=G=>e.isRef(d)?d.value=G:null),"checked-value":"true","unchecked-value":"false",onChange:_},null,8,["modelValue"])]),_:1},8,["label-width","label"]),e.createVNode($,{"label-width":e.unref(t),label:k.$t("SaveResponseParametersTransient")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(p),"onUpdate:modelValue":N[7]||(N[7]=G=>e.isRef(p)?p.value=G:null),"checked-value":"true","unchecked-value":"false",onChange:T},null,8,["modelValue"])]),_:1},8,["label-width","label"]),e.createVNode($,{"label-width":e.unref(t),label:k.$t("SaveResponseVariableAsJson")},{default:e.withCtx(()=>[e.createVNode(L,{modelValue:e.unref(m),"onUpdate:modelValue":N[8]||(N[8]=G=>e.isRef(m)?m.value=G:null),"checked-value":"true","unchecked-value":"false",onChange:E},null,8,["modelValue"])]),_:1},8,["label-width","label"])]),_:1})}}}),F_=o=>Object.prototype.toString.call(o);function j_(o){return F_(o).slice(8,-1).toLowerCase()}const q_=o=>o===null,U_=o=>typeof o>"u",qn=Array.isArray||(o=>j_(o)==="array");function K0(o){return U_(o)||q_(o)}let H_=class{constructor(){this._events={}}_addListener(o,t,n,a){if(typeof t!="function")throw new TypeError("fn must be a function");t.context=n,t.once=!!a;const r=this._events[o];return K0(r)?this._events[o]=t:typeof r=="function"?this._events[o]=[r,t]:qn(r)&&r.push(t),this}addListener(o,t,n,a){if(qn(o)){for(const r of o)this._addListener(r,t,n,a);return this}return this._addListener(o,t,n,a)}on(o,t,n){return this.addListener(o,t,n)}once(o,t,n){return this._addListener(o,t,n,!0)}emit(o,...t){if(K0(o))throw new Error("emit must receive at lease one argument");const n=this._events[o];return K0(n)?!1:(typeof n=="function"?(n.call(n.context||null,...t),n.once&&this.removeListener(o,n)):qn(n)&&n.forEach(a=>{a.call(a.context||null,...t),a.once&&this.removeListener(o,a)}),this)}_removeListener(o,t){if(K0(this._events))return this;if(!t)return Reflect.deleteProperty(this,o),this;if(typeof t!="function")throw new Error("fn must be a function");const n=this._events[o];if(!n)return this;if(typeof n=="function")n===t&&delete this._events[o];else{const a=n.findIndex(r=>r===t);if(a===-1)return this;a===0?n.shift():n.splice(a,1),n.length===1&&(this._events[o]=n[0])}return this}removeListener(o,t){if(qn(o)){for(const n of o)this._removeListener(n,t);return this}return this._removeListener(o,t)}removeAllListeners(o){if(K0(this._events))return this;if(K0(o))return this._events=Object.create(null);const t=this._events[o];return K0(t)||(Object.keys(this._events).length===1?this._events=Object.create(null):delete this._events[o]),this}hasListener(o,t){const n=this._events[o];return n&&qn(n)&&n.includes(t)}listeners(o){if(!this._events[o])return;const t=this._events[o];return qn(t)?t:[t]}listenersCount(o){const t=this._events[o];return K0(t)?0:typeof t=="function"?1:t.length}eventNames(){return Reflect.ownKeys(this._events)}};const Z_=new H_,z_=`<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="https://www.omg.org/spec/DMN/20191111/MODEL/" id="usertasksdmntest001_definition_id" name="" namespace="http://camunda.org/schema/1.0/dmn" exporter="dmn-js (https://demo.bpmn.io/dmn)" exporterVersion="11.0.2">
  <decision id="decision" name="规则测试">
  </decision>
</definitions>`,G_={"View DRD":"返回图形界面","Definition name":"决策定义名称","Definition ID":"决策定义ID","Open decision table":"打开决策","Change type":"修改类型","Connect to other element":"连接到其他元素","Append decision":"追加决策","Append business knowledge model":"追加业务知识模型","Append knowledge source":"追加知识来源","Append input data":"追加输入数据","Add text annotation":"添加文本注解",Delete:"删除","Literal expression":"Literal 表达式","Literal Expression":"Literal 表达式","Decision table":"设置决策表",Empty:"置空","Activate hand tool":"激活手型工具","Activate lasso tool":"激活套索工具","Create decision":"创建决策","Create input data":"创建输入数据","Create knowledge source":"创建知识来源","Create knowledge model":"创建业务知识模型",Unique:"唯一",First:"第一个",Priority:"优先级",Collect:"采集",Any:"任意","Collect (Sum)":"采集 (求和)","Collect (Min)":"采集 (最小)","Collect (Max)":"采集 (最大)","Collect (Count)":"采集 (总数)","Rule order":"规则排序","Output order":"输出排序","Hit policy:":"命中策略：","Decision name":"决策名称",Annotations:"备注",When:"输入",Input:"输入",Then:"输出",Output:"输出",And:"和","Add input":"添加输入","Move input":"移动输入","Add output":"添加输出","Move output":"移动输出","Add rule":"添加规则","Move rule":"移动规则",Expression:"输入变量名","Output name":"输出变量名",Type:"数据类型","Input type":"输入数据类型","Output type":"输出数据类型","Predefined values":"预定义值","Clear predefined values":"清除预定义值","No values":"没有值","Add predefined values":"添加预定义值",value:"值",string:"字符串 (string)",boolean:"布尔值 (boolean)",number:"数字 (number)",double:"浮点数 (double)",long:"长整数 (long)",integer:"整数 (integer)",collection:"集合 (collection)",date:"日期 (date)",time:"时间 (time)",dateTime:"日期+时间 (dateTime)",dayTimeDuration:"持续时间 (日期+时间) (dayTimeDuration)",yearMonthDuration:"持续时间 (年月) (yearMonthDuration)",Edit:"编辑","Edit number":"编辑值","Edit string":"编辑字符串","Edit boolean":"编辑布尔值","Edit date":"编辑日期","Edit time":"编辑时间","Edit date time":"编辑日期时间","Edit duration":"编辑持续","Edit date and time":"编辑日期时间",Equals:"等于",Less:"小于","Less or equals":"小于等于",Greater:"大于","Greater or equals":"大于等于","Match one":"匹配一个","Match none":"不匹配","Start value":"起始值","End value":"结束值","Set time":"设置时间","Set date":"设置日期","Set value":"设置值","Set date and time":"设置日期时间","Set duration":"设置持续","Use today":"使用今天","Use now":"使用此刻",Include:"包含",Exclude:"不包含",Range:"范围",Comparison:"比较",Yes:"是",No:"否","No overlap is possible and all rules are disjoint. Only a single rule can be matched":"","Rules may overlap. The first matching rule will be chosen":"规则可能会重复。将选择第一个匹配规则","Rules may overlap. The one with the highest priority will be chosen":"规则可能会重复。将选择具有最高优先级的匹配规则","Rules may overlap. Their output have to match":"规则可能会重复。它们的输出可以任意匹配","Collects the values of all matching rules":"收集所有匹配规则的值","Collects the values of all matching rules and sums up to a single value":"收集所有匹配规则的值，并求和为一个值","Collects the values of all matching rules and uses the lowest value":"收集所有匹配规则的值，并使用最小值","Collects the values of all matching rules and uses the highest value":"收集所有匹配规则的值，并使用最大值","Collects the values of all matching rules and counts the number of them":"收集所有匹配规则的值并计算它们的数量","Collects the values of all matching rules in rule order":"按规则顺序收集所有匹配规则的值","Collects the values of all matching rules in decreasing output priority order":"按输出优先级降序收集所有匹配规则的值","Copy output column":"拷贝输出列","Cut output column":"剪切输出列","Paste output column left":"向左粘贴输出列","Paste output column right":"向右粘贴输出列","Add output column left":"向左添加输出列","Add output column right":"向右添加输出列","Remove output column":"移除输出列","Copy input column":"拷贝输入列","Cut input column":"剪切输入列","Paste input column left":"向左粘贴输入列","Paste input column right":"向右粘贴输入列","Add input column left":"向左添加输入列","Add input column right":"向右添加输入列","Remove input column":"移除输入列","Copy rule":"复制规则","Cut rule":"剪切规则","Paste rule above":"将规则粘贴到上面","Paste rule below":"将规则粘贴到下面","Add rule above":"上方插规则","Add rule below":"在下面添加规则","Remove rule":"移除规则","Add cell description":"添加单元格描述","Date must match pattern yyyy-MM-dd":"日期必须符合 yyyy-MM-dd 格式","Time must match pattern hh:mm:ss[time zone]":"时间必须符合 hh:mm:ss[time zone] 格式","Date and time must match pattern yyyy-MM-ddTHH:mm:ss[time zone]":"日期时间必须符合 yyyy-MM-ddTHH:mm:ss[time zone] 格式","Must match PnDTnH":"持续时间必须符合 PnDTnH 格式","Must match PnYnM":"持续时间必须符合 PnYnM 格式","Function signature":"函数签名","Edit function kind":"编辑函数类型","Edit formal parameters":"编辑形式参数(形参)",Name:"名称","Add parameter":"添加参数",Result:"返回结果","Variable name":"变量名称","Result type":"返回类型",decisionService:"决策服务",encapsulatedDecision:"",outputDecision:""};function K_(o,t){return t=t||{},o=G_[o]||o,o.replace(/{([^}]+)}/g,function(n,a){return t[a]||"{"+a+"}"})}const W_=[{translate:["value",K_]}],mu=[W_],Y_=["string","boolean","integer","number","long","double","date","collection"],fu=e.defineComponent({name:"DmnViewer",__name:"index",props:{xml:{type:String,default:void 0}},emits:["modeler-init"],setup(o,{expose:t,emit:n}){const a=o,r=n,i=e.ref(void 0),s=e.shallowRef(),l=()=>{s.value=new O4({container:i.value,keyboard:{bindTo:document},additionalModules:mu,decisionTable:{keyboard:{bindTo:document},additionalModules:mu},common:{dataTypes:Y_}}),r("modeler-init",s.value),Z_.emit("modeler-init",s.value)},c=async u=>{try{s.value||l(),await s.value.importXML(u||a.xml||z_)}catch(d){console.error(d)}};return e.watch(()=>a.xml,u=>{e.nextTick(()=>c(u))}),e.onMounted(()=>{l(),c(a.xml)}),e.onBeforeUnmount(()=>{var u;(u=s.value)==null||u.destroy(),s.value=void 0}),t({createNewProcess:c}),(u,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"canvasEl",ref:i,class:"dmn-viewer"},null,512))}});function A3(o,t){return function(){return o.apply(t,arguments)}}const{toString:J_}=Object.prototype,{getPrototypeOf:u1}=Object,Ur=(o=>t=>{const n=J_.call(t);return o[n]||(o[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),b0=o=>(o=o.toLowerCase(),t=>Ur(t)===o),Hr=o=>t=>typeof t===o,{isArray:ho}=Array,Go=Hr("undefined");function X_(o){return o!==null&&!Go(o)&&o.constructor!==null&&!Go(o.constructor)&&e0(o.constructor.isBuffer)&&o.constructor.isBuffer(o)}const D3=b0("ArrayBuffer");function Q_(o){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(o):t=o&&o.buffer&&D3(o.buffer),t}const eN=Hr("string"),e0=Hr("function"),R3=Hr("number"),Zr=o=>o!==null&&typeof o=="object",tN=o=>o===!0||o===!1,za=o=>{if(Ur(o)!=="object")return!1;const t=u1(o);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in o)&&!(Symbol.iterator in o)},nN=b0("Date"),oN=b0("File"),aN=b0("Blob"),rN=b0("FileList"),iN=o=>Zr(o)&&e0(o.pipe),sN=o=>{let t;return o&&(typeof FormData=="function"&&o instanceof FormData||e0(o.append)&&((t=Ur(o))==="formdata"||t==="object"&&e0(o.toString)&&o.toString()==="[object FormData]"))},lN=b0("URLSearchParams"),[cN,uN,dN,pN]=["ReadableStream","Request","Response","Headers"].map(b0),mN=o=>o.trim?o.trim():o.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function la(o,t,{allOwnKeys:n=!1}={}){if(o===null||typeof o>"u")return;let a,r;if(typeof o!="object"&&(o=[o]),ho(o))for(a=0,r=o.length;a<r;a++)t.call(null,o[a],a,o);else{const i=n?Object.getOwnPropertyNames(o):Object.keys(o),s=i.length;let l;for(a=0;a<s;a++)l=i[a],t.call(null,o[l],l,o)}}function I3(o,t){t=t.toLowerCase();const n=Object.keys(o);let a=n.length,r;for(;a-- >0;)if(r=n[a],t===r.toLowerCase())return r;return null}const O3=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$3=o=>!Go(o)&&o!==O3;function Ks(){const{caseless:o}=$3(this)&&this||{},t={},n=(a,r)=>{const i=o&&I3(t,r)||r;za(t[i])&&za(a)?t[i]=Ks(t[i],a):za(a)?t[i]=Ks({},a):ho(a)?t[i]=a.slice():t[i]=a};for(let a=0,r=arguments.length;a<r;a++)arguments[a]&&la(arguments[a],n);return t}const fN=(o,t,n,{allOwnKeys:a}={})=>(la(t,(r,i)=>{n&&e0(r)?o[i]=A3(r,n):o[i]=r},{allOwnKeys:a}),o),hN=o=>(o.charCodeAt(0)===65279&&(o=o.slice(1)),o),vN=(o,t,n,a)=>{o.prototype=Object.create(t.prototype,a),o.prototype.constructor=o,Object.defineProperty(o,"super",{value:t.prototype}),n&&Object.assign(o.prototype,n)},gN=(o,t,n,a)=>{let r,i,s;const l={};if(t=t||{},o==null)return t;do{for(r=Object.getOwnPropertyNames(o),i=r.length;i-- >0;)s=r[i],(!a||a(s,o,t))&&!l[s]&&(t[s]=o[s],l[s]=!0);o=n!==!1&&u1(o)}while(o&&(!n||n(o,t))&&o!==Object.prototype);return t},bN=(o,t,n)=>{o=String(o),(n===void 0||n>o.length)&&(n=o.length),n-=t.length;const a=o.indexOf(t,n);return a!==-1&&a===n},yN=o=>{if(!o)return null;if(ho(o))return o;let t=o.length;if(!R3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=o[t];return n},EN=(o=>t=>o&&t instanceof o)(typeof Uint8Array<"u"&&u1(Uint8Array)),wN=(o,t)=>{const n=(o&&o[Symbol.iterator]).call(o);let a;for(;(a=n.next())&&!a.done;){const r=a.value;t.call(o,r[0],r[1])}},CN=(o,t)=>{let n;const a=[];for(;(n=o.exec(t))!==null;)a.push(n);return a},_N=b0("HTMLFormElement"),NN=o=>o.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,a){return n.toUpperCase()+a}),hu=(({hasOwnProperty:o})=>(t,n)=>o.call(t,n))(Object.prototype),SN=b0("RegExp"),L3=(o,t)=>{const n=Object.getOwnPropertyDescriptors(o),a={};la(n,(r,i)=>{let s;(s=t(r,i,o))!==!1&&(a[i]=s||r)}),Object.defineProperties(o,a)},TN=o=>{L3(o,(t,n)=>{if(e0(o)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=o[n];if(e0(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},kN=(o,t)=>{const n={},a=r=>{r.forEach(i=>{n[i]=!0})};return ho(o)?a(o):a(String(o).split(t)),n},xN=()=>{},VN=(o,t)=>o!=null&&Number.isFinite(o=+o)?o:t,es="abcdefghijklmnopqrstuvwxyz",vu="0123456789",B3={DIGIT:vu,ALPHA:es,ALPHA_DIGIT:es+es.toUpperCase()+vu},AN=(o=16,t=B3.ALPHA_DIGIT)=>{let n="";const{length:a}=t;for(;o--;)n+=t[Math.random()*a|0];return n};function DN(o){return!!(o&&e0(o.append)&&o[Symbol.toStringTag]==="FormData"&&o[Symbol.iterator])}const RN=o=>{const t=new Array(10),n=(a,r)=>{if(Zr(a)){if(t.indexOf(a)>=0)return;if(!("toJSON"in a)){t[r]=a;const i=ho(a)?[]:{};return la(a,(s,l)=>{const c=n(s,r+1);!Go(c)&&(i[l]=c)}),t[r]=void 0,i}}return a};return n(o,0)},IN=b0("AsyncFunction"),ON=o=>o&&(Zr(o)||e0(o))&&e0(o.then)&&e0(o.catch),W={isArray:ho,isArrayBuffer:D3,isBuffer:X_,isFormData:sN,isArrayBufferView:Q_,isString:eN,isNumber:R3,isBoolean:tN,isObject:Zr,isPlainObject:za,isReadableStream:cN,isRequest:uN,isResponse:dN,isHeaders:pN,isUndefined:Go,isDate:nN,isFile:oN,isBlob:aN,isRegExp:SN,isFunction:e0,isStream:iN,isURLSearchParams:lN,isTypedArray:EN,isFileList:rN,forEach:la,merge:Ks,extend:fN,trim:mN,stripBOM:hN,inherits:vN,toFlatObject:gN,kindOf:Ur,kindOfTest:b0,endsWith:bN,toArray:yN,forEachEntry:wN,matchAll:CN,isHTMLForm:_N,hasOwnProperty:hu,hasOwnProp:hu,reduceDescriptors:L3,freezeMethods:TN,toObjectSet:kN,toCamelCase:NN,noop:xN,toFiniteNumber:VN,findKey:I3,global:O3,isContextDefined:$3,ALPHABET:B3,generateString:AN,isSpecCompliantForm:DN,toJSONObject:RN,isAsyncFn:IN,isThenable:ON};function Se(o,t,n,a,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=o,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r)}W.inherits(Se,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const P3=Se.prototype,M3={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(o=>{M3[o]={value:o}});Object.defineProperties(Se,M3);Object.defineProperty(P3,"isAxiosError",{value:!0});Se.from=(o,t,n,a,r,i)=>{const s=Object.create(P3);return W.toFlatObject(o,s,function(l){return l!==Error.prototype},l=>l!=="isAxiosError"),Se.call(s,o.message,t,n,a,r),s.cause=o,s.name=o.name,i&&Object.assign(s,i),s};const $N=null;function Ws(o){return W.isPlainObject(o)||W.isArray(o)}function F3(o){return W.endsWith(o,"[]")?o.slice(0,-2):o}function gu(o,t,n){return o?o.concat(t).map(function(a,r){return a=F3(a),!n&&r?"["+a+"]":a}).join(n?".":""):t}function LN(o){return W.isArray(o)&&!o.some(Ws)}const BN=W.toFlatObject(W,{},null,function(o){return/^is[A-Z]/.test(o)});function zr(o,t,n){if(!W.isObject(o))throw new TypeError("target must be an object");t=t||new FormData,n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,h){return!W.isUndefined(h[f])});const a=n.metaTokens,r=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(r))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(W.isDate(f))return f.toISOString();if(!l&&W.isBlob(f))throw new Se("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(f)||W.isTypedArray(f)?l&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function u(f,h,y){let g=f;if(f&&!y&&typeof f=="object"){if(W.endsWith(h,"{}"))h=a?h:h.slice(0,-2),f=JSON.stringify(f);else if(W.isArray(f)&&LN(f)||(W.isFileList(f)||W.endsWith(h,"[]"))&&(g=W.toArray(f)))return h=F3(h),g.forEach(function(C,x){!(W.isUndefined(C)||C===null)&&t.append(s===!0?gu([h],x,i):s===null?h:h+"[]",c(C))}),!1}return Ws(f)?!0:(t.append(gu(y,h,i),c(f)),!1)}const d=[],p=Object.assign(BN,{defaultVisitor:u,convertValue:c,isVisitable:Ws});function m(f,h){if(!W.isUndefined(f)){if(d.indexOf(f)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(f),W.forEach(f,function(y,g){(!(W.isUndefined(y)||y===null)&&r.call(t,y,W.isString(g)?g.trim():g,h,p))===!0&&m(y,h?h.concat(g):[g])}),d.pop()}}if(!W.isObject(o))throw new TypeError("data must be an object");return m(o),t}function bu(o){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(o).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function d1(o,t){this._pairs=[],o&&zr(o,this,t)}const j3=d1.prototype;j3.append=function(o,t){this._pairs.push([o,t])};j3.toString=function(o){const t=o?function(n){return o.call(this,n,bu)}:bu;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function PN(o){return encodeURIComponent(o).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q3(o,t,n){if(!t)return o;const a=n&&n.encode||PN,r=n&&n.serialize;let i;if(r?i=r(t,n):i=W.isURLSearchParams(t)?t.toString():new d1(t,n).toString(a),i){const s=o.indexOf("#");s!==-1&&(o=o.slice(0,s)),o+=(o.indexOf("?")===-1?"?":"&")+i}return o}class yu{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(n){n!==null&&t(n)})}}const U3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},MN=typeof URLSearchParams<"u"?URLSearchParams:d1,FN=typeof FormData<"u"?FormData:null,jN=typeof Blob<"u"?Blob:null,qN={isBrowser:!0,classes:{URLSearchParams:MN,FormData:FN,Blob:jN},protocols:["http","https","file","blob","url","data"]},p1=typeof window<"u"&&typeof document<"u",UN=(o=>p1&&["ReactNative","NativeScript","NS"].indexOf(o)<0)(typeof navigator<"u"&&navigator.product),HN=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ZN=p1&&window.location.href||"http://localhost",zN=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:p1,hasStandardBrowserEnv:UN,hasStandardBrowserWebWorkerEnv:HN,origin:ZN},Symbol.toStringTag,{value:"Module"})),p0={...zN,...qN};function GN(o,t){return zr(o,new p0.classes.URLSearchParams,Object.assign({visitor:function(n,a,r,i){return p0.isNode&&W.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function KN(o){return W.matchAll(/\w+|\[(\w*)]/g,o).map(t=>t[0]==="[]"?"":t[1]||t[0])}function WN(o){const t={},n=Object.keys(o);let a;const r=n.length;let i;for(a=0;a<r;a++)i=n[a],t[i]=o[i];return t}function H3(o){function t(n,a,r,i){let s=n[i++];if(s==="__proto__")return!0;const l=Number.isFinite(+s),c=i>=n.length;return s=!s&&W.isArray(r)?r.length:s,c?(W.hasOwnProp(r,s)?r[s]=[r[s],a]:r[s]=a,!l):((!r[s]||!W.isObject(r[s]))&&(r[s]=[]),t(n,a,r[s],i)&&W.isArray(r[s])&&(r[s]=WN(r[s])),!l)}if(W.isFormData(o)&&W.isFunction(o.entries)){const n={};return W.forEachEntry(o,(a,r)=>{t(KN(a),r,n,0)}),n}return null}function YN(o,t,n){if(W.isString(o))try{return(t||JSON.parse)(o),W.trim(o)}catch(a){if(a.name!=="SyntaxError")throw a}return(0,JSON.stringify)(o)}const ca={transitional:U3,adapter:["xhr","http","fetch"],transformRequest:[function(o,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,r=W.isObject(o);if(r&&W.isHTMLForm(o)&&(o=new FormData(o)),W.isFormData(o))return a?JSON.stringify(H3(o)):o;if(W.isArrayBuffer(o)||W.isBuffer(o)||W.isStream(o)||W.isFile(o)||W.isBlob(o)||W.isReadableStream(o))return o;if(W.isArrayBufferView(o))return o.buffer;if(W.isURLSearchParams(o))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let i;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return GN(o,this.formSerializer).toString();if((i=W.isFileList(o))||n.indexOf("multipart/form-data")>-1){const s=this.env&&this.env.FormData;return zr(i?{"files[]":o}:o,s&&new s,this.formSerializer)}}return r||a?(t.setContentType("application/json",!1),YN(o)):o}],transformResponse:[function(o){const t=this.transitional||ca.transitional,n=t&&t.forcedJSONParsing,a=this.responseType==="json";if(W.isResponse(o)||W.isReadableStream(o))return o;if(o&&W.isString(o)&&(n&&!this.responseType||a)){const r=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(o)}catch(i){if(r)throw i.name==="SyntaxError"?Se.from(i,Se.ERR_BAD_RESPONSE,this,null,this.response):i}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:p0.classes.FormData,Blob:p0.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],o=>{ca.headers[o]={}});const JN=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),XN=o=>{const t={};let n,a,r;return o&&o.split(`
`).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),a=i.substring(r+1).trim(),!(!n||t[n]&&JN[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},Eu=Symbol("internals");function Do(o){return o&&String(o).trim().toLowerCase()}function Ga(o){return o===!1||o==null?o:W.isArray(o)?o.map(Ga):String(o)}function QN(o){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(o);)t[a[1]]=a[2];return t}const eS=o=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function ts(o,t,n,a,r){if(W.isFunction(a))return a.call(this,t,n);if(r&&(t=n),!!W.isString(t)){if(W.isString(a))return t.indexOf(a)!==-1;if(W.isRegExp(a))return a.test(t)}}function tS(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function nS(o,t){const n=W.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(o,a+n,{value:function(r,i,s){return this[a].call(this,t,r,i,s)},configurable:!0})})}class Pt{constructor(t){t&&this.set(t)}set(t,n,a){const r=this;function i(l,c,u){const d=Do(c);if(!d)throw new Error("header name must be a non-empty string");const p=W.findKey(r,d);(!p||r[p]===void 0||u===!0||u===void 0&&r[p]!==!1)&&(r[p||c]=Ga(l))}const s=(l,c)=>W.forEach(l,(u,d)=>i(u,d,c));if(W.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(W.isString(t)&&(t=t.trim())&&!eS(t))s(XN(t),n);else if(W.isHeaders(t))for(const[l,c]of t.entries())i(c,l,a);else t!=null&&i(n,t,a);return this}get(t,n){if(t=Do(t),t){const a=W.findKey(this,t);if(a){const r=this[a];if(!n)return r;if(n===!0)return QN(r);if(W.isFunction(n))return n.call(this,r,a);if(W.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Do(t),t){const a=W.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||ts(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let r=!1;function i(s){if(s=Do(s),s){const l=W.findKey(a,s);l&&(!n||ts(a,a[l],l,n))&&(delete a[l],r=!0)}}return W.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let a=n.length,r=!1;for(;a--;){const i=n[a];(!t||ts(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,a={};return W.forEach(this,(r,i)=>{const s=W.findKey(a,i);if(s){n[s]=Ga(r),delete n[i];return}const l=t?tS(i):String(i).trim();l!==i&&delete n[i],n[l]=Ga(r),a[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return W.forEach(this,(a,r)=>{a!=null&&a!==!1&&(n[r]=t&&W.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(r=>a.set(r)),a}static accessor(t){const n=(this[Eu]=this[Eu]={accessors:{}}).accessors,a=this.prototype;function r(i){const s=Do(i);n[s]||(nS(a,i),n[s]=!0)}return W.isArray(t)?t.forEach(r):r(t),this}}Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(Pt.prototype,({value:o},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>o,set(a){this[n]=a}}});W.freezeMethods(Pt);function ns(o,t){const n=this||ca,a=t||n,r=Pt.from(a.headers);let i=a.data;return W.forEach(o,function(s){i=s.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Z3(o){return!!(o&&o.__CANCEL__)}function vo(o,t,n){Se.call(this,o??"canceled",Se.ERR_CANCELED,t,n),this.name="CanceledError"}W.inherits(vo,Se,{__CANCEL__:!0});function z3(o,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?o(n):t(new Se("Request failed with status code "+n.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function oS(o){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return t&&t[1]||""}function aS(o,t){o=o||10;const n=new Array(o),a=new Array(o);let r=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=a[i];s||(s=c),n[r]=l,a[r]=c;let d=i,p=0;for(;d!==r;)p+=n[d++],d=d%o;if(r=(r+1)%o,r===i&&(i=(i+1)%o),c-s<t)return;const m=u&&c-u;return m?Math.round(p*1e3/m):void 0}}function rS(o,t){let n=0;const a=1e3/t;let r=null;return function(){const i=this===!0,s=Date.now();if(i||s-n>a)return r&&(clearTimeout(r),r=null),n=s,o.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),o.apply(null,arguments)),a-(s-n)))}}const ir=(o,t,n=3)=>{let a=0;const r=aS(50,250);return rS(i=>{const s=i.loaded,l=i.lengthComputable?i.total:void 0,c=s-a,u=r(c),d=s<=l;a=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&d?(l-s)/u:void 0,event:i,lengthComputable:l!=null};p[t?"download":"upload"]=!0,o(p)},n)},iS=p0.hasStandardBrowserEnv?function(){const o=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function a(r){let i=r;return o&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(r){const i=W.isString(r)?a(r):r;return i.protocol===n.protocol&&i.host===n.host}}():function(){return function(){return!0}}(),sS=p0.hasStandardBrowserEnv?{write(o,t,n,a,r,i){const s=[o+"="+encodeURIComponent(t)];W.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),W.isString(a)&&s.push("path="+a),W.isString(r)&&s.push("domain="+r),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(o){const t=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function lS(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function cS(o,t){return t?o.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):o}function G3(o,t){return o&&!lS(t)?cS(o,t):t}const wu=o=>o instanceof Pt?{...o}:o;function Tn(o,t){t=t||{};const n={};function a(u,d,p){return W.isPlainObject(u)&&W.isPlainObject(d)?W.merge.call({caseless:p},u,d):W.isPlainObject(d)?W.merge({},d):W.isArray(d)?d.slice():d}function r(u,d,p){if(W.isUndefined(d)){if(!W.isUndefined(u))return a(void 0,u,p)}else return a(u,d,p)}function i(u,d){if(!W.isUndefined(d))return a(void 0,d)}function s(u,d){if(W.isUndefined(d)){if(!W.isUndefined(u))return a(void 0,u)}else return a(void 0,d)}function l(u,d,p){if(p in t)return a(u,d);if(p in o)return a(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(u,d)=>r(wu(u),wu(d),!0)};return W.forEach(Object.keys(Object.assign({},o,t)),function(u){const d=c[u]||r,p=d(o[u],t[u],u);W.isUndefined(p)&&d!==l||(n[u]=p)}),n}const K3=o=>{const t=Tn({},o);let{data:n,withXSRFToken:a,xsrfHeaderName:r,xsrfCookieName:i,headers:s,auth:l}=t;t.headers=s=Pt.from(s),t.url=q3(G3(t.baseURL,t.url),o.params,o.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(W.isFormData(n)){if(p0.hasStandardBrowserEnv||p0.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...d]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(p0.hasStandardBrowserEnv&&(a&&W.isFunction(a)&&(a=a(t)),a||a!==!1&&iS(t.url))){const u=r&&i&&sS.read(i);u&&s.set(r,u)}return t},uS=typeof XMLHttpRequest<"u",dS=uS&&function(o){return new Promise(function(t,n){const a=K3(o);let r=a.data;const i=Pt.from(a.headers).normalize();let{responseType:s}=a,l;function c(){a.cancelToken&&a.cancelToken.unsubscribe(l),a.signal&&a.signal.removeEventListener("abort",l)}let u=new XMLHttpRequest;u.open(a.method.toUpperCase(),a.url,!0),u.timeout=a.timeout;function d(){if(!u)return;const m=Pt.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),f={data:!s||s==="text"||s==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:m,config:o,request:u};z3(function(h){t(h),c()},function(h){n(h),c()},f),u=null}"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(d)},u.onabort=function(){u&&(n(new Se("Request aborted",Se.ECONNABORTED,a,u)),u=null)},u.onerror=function(){n(new Se("Network Error",Se.ERR_NETWORK,a,u)),u=null},u.ontimeout=function(){let m=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const f=a.transitional||U3;a.timeoutErrorMessage&&(m=a.timeoutErrorMessage),n(new Se(m,f.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,a,u)),u=null},r===void 0&&i.setContentType(null),"setRequestHeader"in u&&W.forEach(i.toJSON(),function(m,f){u.setRequestHeader(f,m)}),W.isUndefined(a.withCredentials)||(u.withCredentials=!!a.withCredentials),s&&s!=="json"&&(u.responseType=a.responseType),typeof a.onDownloadProgress=="function"&&u.addEventListener("progress",ir(a.onDownloadProgress,!0)),typeof a.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",ir(a.onUploadProgress)),(a.cancelToken||a.signal)&&(l=m=>{u&&(n(!m||m.type?new vo(null,o,u):m),u.abort(),u=null)},a.cancelToken&&a.cancelToken.subscribe(l),a.signal&&(a.signal.aborted?l():a.signal.addEventListener("abort",l)));const p=oS(a.url);if(p&&p0.protocols.indexOf(p)===-1){n(new Se("Unsupported protocol "+p+":",Se.ERR_BAD_REQUEST,o));return}u.send(r||null)})},pS=(o,t)=>{let n=new AbortController,a;const r=function(c){if(!a){a=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof Se?u:new vo(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{r(new Se(`timeout ${t} of ms exceeded`,Se.ETIMEDOUT))},t);const s=()=>{o&&(i&&clearTimeout(i),i=null,o.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",r):c.unsubscribe(r))}),o=null)};o.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",r));const{signal:l}=n;return l.unsubscribe=s,[l,()=>{i&&clearTimeout(i),i=null}]},mS=function*(o,t){let n=o.byteLength;if(n<t){yield o;return}let a=0,r;for(;a<n;)r=a+t,yield o.slice(a,r),a=r},fS=async function*(o,t,n){for await(const a of o)yield*mS(ArrayBuffer.isView(a)?a:await n(String(a)),t)},Cu=(o,t,n,a,r)=>{const i=fS(o,t,r);let s=0;return new ReadableStream({type:"bytes",async pull(l){const{done:c,value:u}=await i.next();if(c){l.close(),a();return}let d=u.byteLength;n&&n(s+=d),l.enqueue(new Uint8Array(u))},cancel(l){return a(l),i.return()}},{highWaterMark:2})},_u=(o,t)=>{const n=o!=null;return a=>setTimeout(()=>t({lengthComputable:n,total:o,loaded:a}))},Gr=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",W3=Gr&&typeof ReadableStream=="function",Ys=Gr&&(typeof TextEncoder=="function"?(o=>t=>o.encode(t))(new TextEncoder):async o=>new Uint8Array(await new Response(o).arrayBuffer())),hS=W3&&(()=>{let o=!1;const t=new Request(p0.origin,{body:new ReadableStream,method:"POST",get duplex(){return o=!0,"half"}}).headers.has("Content-Type");return o&&!t})(),Nu=64*1024,Js=W3&&!!(()=>{try{return W.isReadableStream(new Response("").body)}catch{}})(),sr={stream:Js&&(o=>o.body)};Gr&&(o=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!sr[t]&&(sr[t]=W.isFunction(o[t])?n=>n[t]():(n,a)=>{throw new Se(`Response type '${t}' is not supported`,Se.ERR_NOT_SUPPORT,a)})})})(new Response);const vS=async o=>{if(o==null)return 0;if(W.isBlob(o))return o.size;if(W.isSpecCompliantForm(o))return(await new Request(o).arrayBuffer()).byteLength;if(W.isArrayBufferView(o))return o.byteLength;if(W.isURLSearchParams(o)&&(o=o+""),W.isString(o))return(await Ys(o)).byteLength},gS=async(o,t)=>W.toFiniteNumber(o.getContentLength())??vS(t),bS=Gr&&(async o=>{let{url:t,method:n,data:a,signal:r,cancelToken:i,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:d,withCredentials:p="same-origin",fetchOptions:m}=K3(o);u=u?(u+"").toLowerCase():"text";let[f,h]=r||i||s?pS([r,i],s):[],y,g;const C=()=>{!y&&setTimeout(()=>{f&&f.unsubscribe()}),y=!0};let x;try{if(c&&hS&&n!=="get"&&n!=="head"&&(x=await gS(d,a))!==0){let E=new Request(t,{method:"POST",body:a,duplex:"half"}),w;W.isFormData(a)&&(w=E.headers.get("content-type"))&&d.setContentType(w),E.body&&(a=Cu(E.body,Nu,_u(x,ir(c)),null,Ys))}W.isString(p)||(p=p?"cors":"omit"),g=new Request(t,{...m,signal:f,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:a,duplex:"half",withCredentials:p});let D=await fetch(g);const _=Js&&(u==="stream"||u==="response");if(Js&&(l||_)){const E={};["status","statusText","headers"].forEach(b=>{E[b]=D[b]});const w=W.toFiniteNumber(D.headers.get("content-length"));D=new Response(Cu(D.body,Nu,l&&_u(w,ir(l,!0)),_&&C,Ys),E)}u=u||"text";let T=await sr[W.findKey(sr,u)||"text"](D,o);return!_&&C(),h&&h(),await new Promise((E,w)=>{z3(E,w,{data:T,headers:Pt.from(D.headers),status:D.status,statusText:D.statusText,config:o,request:g})})}catch(D){throw C(),D&&D.name==="TypeError"&&/fetch/i.test(D.message)?Object.assign(new Se("Network Error",Se.ERR_NETWORK,o,g),{cause:D.cause||D}):Se.from(D,D&&D.code,o,g)}}),Xs={http:$N,xhr:dS,fetch:bS};W.forEach(Xs,(o,t)=>{if(o){try{Object.defineProperty(o,"name",{value:t})}catch{}Object.defineProperty(o,"adapterName",{value:t})}});const Su=o=>`- ${o}`,yS=o=>W.isFunction(o)||o===null||o===!1,Y3={getAdapter:o=>{o=W.isArray(o)?o:[o];const{length:t}=o;let n,a;const r={};for(let i=0;i<t;i++){n=o[i];let s;if(a=n,!yS(n)&&(a=Xs[(s=String(n)).toLowerCase()],a===void 0))throw new Se(`Unknown adapter '${s}'`);if(a)break;r[s||"#"+i]=a}if(!a){const i=Object.entries(r).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
`+i.map(Su).join(`
`):" "+Su(i[0]):"as no adapter specified";throw new Se("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a},adapters:Xs};function os(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new vo(null,o)}function Tu(o){return os(o),o.headers=Pt.from(o.headers),o.data=ns.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),Y3.getAdapter(o.adapter||ca.adapter)(o).then(function(t){return os(o),t.data=ns.call(o,o.transformResponse,t),t.headers=Pt.from(t.headers),t},function(t){return Z3(t)||(os(o),t&&t.response&&(t.response.data=ns.call(o,o.transformResponse,t.response),t.response.headers=Pt.from(t.response.headers))),Promise.reject(t)})}const J3="1.7.2",m1={};["object","boolean","number","function","string","symbol"].forEach((o,t)=>{m1[o]=function(n){return typeof n===o||"a"+(t<1?"n ":" ")+o}});const ku={};m1.transitional=function(o,t,n){function a(r,i){return"[Axios v"+J3+"] Transitional option '"+r+"'"+i+(n?". "+n:"")}return(r,i,s)=>{if(o===!1)throw new Se(a(i," has been removed"+(t?" in "+t:"")),Se.ERR_DEPRECATED);return t&&!ku[i]&&(ku[i]=!0,console.warn(a(i," has been deprecated since v"+t+" and will be removed in the near future"))),o?o(r,i,s):!0}};function ES(o,t,n){if(typeof o!="object")throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);const a=Object.keys(o);let r=a.length;for(;r-- >0;){const i=a[r],s=t[i];if(s){const l=o[i],c=l===void 0||s(l,i,o);if(c!==!0)throw new Se("option "+i+" must be "+c,Se.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Se("Unknown option "+i,Se.ERR_BAD_OPTION)}}const Qs={assertOptions:ES,validators:m1},W0=Qs.validators;class yn{constructor(t){this.defaults=t,this.interceptors={request:new yu,response:new yu}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{a.stack?i&&!String(a.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(a.stack+=`
`+i):a.stack=i}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Tn(this.defaults,n);const{transitional:a,paramsSerializer:r,headers:i}=n;a!==void 0&&Qs.assertOptions(a,{silentJSONParsing:W0.transitional(W0.boolean),forcedJSONParsing:W0.transitional(W0.boolean),clarifyTimeoutError:W0.transitional(W0.boolean)},!1),r!=null&&(W.isFunction(r)?n.paramsSerializer={serialize:r}:Qs.assertOptions(r,{encode:W0.function,serialize:W0.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&W.merge(i.common,i[n.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),n.headers=Pt.concat(s,i);const l=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,l.unshift(h.fulfilled,h.rejected))});const u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});let d,p=0,m;if(!c){const h=[Tu.bind(this),void 0];for(h.unshift.apply(h,l),h.push.apply(h,u),m=h.length,d=Promise.resolve(n);p<m;)d=d.then(h[p++],h[p++]);return d}m=l.length;let f=n;for(p=0;p<m;){const h=l[p++],y=l[p++];try{f=h(f)}catch(g){y.call(this,g);break}}try{d=Tu.call(this,f)}catch(h){return Promise.reject(h)}for(p=0,m=u.length;p<m;)d=d.then(u[p++],u[p++]);return d}getUri(t){t=Tn(this.defaults,t);const n=G3(t.baseURL,t.url);return q3(n,t.params,t.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(o){yn.prototype[o]=function(t,n){return this.request(Tn(n||{},{method:o,url:t,data:(n||{}).data}))}});W.forEach(["post","put","patch"],function(o){function t(n){return function(a,r,i){return this.request(Tn(i||{},{method:o,headers:n?{"Content-Type":"multipart/form-data"}:{},url:a,data:r}))}}yn.prototype[o]=t(),yn.prototype[o+"Form"]=t(!0)});class f1{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(r){n=r});const a=this;this.promise.then(r=>{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](r);a._listeners=null}),this.promise.then=r=>{let i;const s=new Promise(l=>{a.subscribe(l),i=l}).then(r);return s.cancel=function(){a.unsubscribe(i)},s},t(function(r,i,s){a.reason||(a.reason=new vo(r,i,s),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new f1(function(n){t=n}),cancel:t}}}function wS(o){return function(t){return o.apply(null,t)}}function CS(o){return W.isObject(o)&&o.isAxiosError===!0}const el={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(el).forEach(([o,t])=>{el[t]=o});function X3(o){const t=new yn(o),n=A3(yn.prototype.request,t);return W.extend(n,yn.prototype,t,{allOwnKeys:!0}),W.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return X3(Tn(o,a))},n}const Ze=X3(ca);Ze.Axios=yn;Ze.CanceledError=vo;Ze.CancelToken=f1;Ze.isCancel=Z3;Ze.VERSION=J3;Ze.toFormData=zr;Ze.AxiosError=Se;Ze.Cancel=Ze.CanceledError;Ze.all=function(o){return Promise.all(o)};Ze.spread=wS;Ze.isAxiosError=CS;Ze.mergeConfig=Tn;Ze.AxiosHeaders=Pt;Ze.formToJSON=o=>H3(W.isHTMLForm(o)?new FormData(o):o);Ze.getAdapter=Y3.getAdapter;Ze.HttpStatusCode=el;Ze.default=Ze;Ze.defaults.baseURL="/";Ze.defaults.timeout=100*1e3;Ze.defaults.withCredentials=!0;Ze.defaults.headers.post["Content-Type"]="application/json;charset=utf-8";Ze.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";Ze.interceptors.request.use(o=>{try{if(parent.window){const t=parent.window.localStorage.getItem("authorizationKey"),n=parent.window.localStorage.getItem("authorizationValue");parent.window.localStorage.getItem("flowtoken"),o.headers.flowtoken=parent.window.localStorage.getItem("flowtoken"),o.headers[t]=n}else console.error("只在在流程中心用iframe打开，才能获取token!")}catch(t){o.headers.flowtoken=localStorage.getItem("flowtoken");const n=window.localStorage.getItem("authorizationKey");o.headers[n]=window.localStorage.getItem("authorizationValue"),console.error("获取父窗口的token失败！"+t)}return o},o=>Promise.reject(o));Ze.interceptors.response.use(o=>{if(o&&o.status==200){const t=o.data.code,n=o.data.msg;if(t==="100")return Promise.resolve(o.data);if(t!=400)return t==="101"?(Xt.Message.error(n),Promise.reject(n)):Promise.reject(o.data)}else return Promise.reject(o==null?void 0:o.data)},o=>(o.response,Promise.reject(o)));const _S={class:"tag-input-flex"},NS={class:"header-tags"},SS={class:"tag-input-grid",style:{"--columns":"360px 1fr"}},TS={class:"left-org-tree"},kS={class:"tree-content"},xS={class:"right-table"},VS={class:"table-content"},AS=e.defineComponent({name:"DmnTagInput",__name:"DmnTagInput",props:{data:{type:Array,default:()=>[]},modalTitle:{type:String,default:"Decision selection"},multiple:{type:Boolean,default:!0},rowKey:{type:String,default:"modelKey"}},emits:["update:data","change"],setup(o,{emit:t}){const n=o,a=t,{t:r}=Le.useI18n(),i=e.computed(()=>Array.isArray(e.toRaw(n.data))?n.data.map(L=>L.name):[]),s=e.ref(!1),l=e.ref([]),c=e.ref([]);e.watch(()=>n.data,()=>{l.value=(n.data||[]).map(L=>L[n.rowKey]),c.value=[...n.data||[]]},{immediate:!0,deep:!0});const u=e.ref(!1),d=e.ref([]),p=e.ref(),m=e.ref([]),f=e.ref(0),h=e.ref(""),y=e.ref({pageSize:15,pageNum:1}),g=e.ref({categoryCode:"",keyword:""}),C=e.reactive({type:n.multiple?"checkbox":"radio",showCheckedAll:!1,onlyCurrent:!1}),x=e.ref(),D=e.computed(()=>[{title:r("Name"),dataIndex:"name"},{title:r("Code"),dataIndex:"modelKey"},{title:r("Publish status"),dataIndex:"statusName"},{title:r("The app it belongs to"),dataIndex:"appName"},{title:r("Operation"),width:64,slotName:"operation"}]),_=e.computed(()=>En(d.value,"name",h.value)),T=async()=>{var L;try{d.value=await Rl(),await e.nextTick(),(L=p.value)==null||L.expandAll(!0)}catch(F){console.error(F),d.value=[]}},E=async L=>{try{u.value=!0,L&&(y.value.pageNum=L);const{data:{rows:F,total:G}}=await x8({pager:y.value,entity:g.value});m.value=F||[],f.value=G;for(const ae of m.value)ae.modelXml&&($.value[ae[n.rowKey]]=ae.modelXml)}catch(F){console.error(F),m.value=[],f.value=0}finally{u.value=!1}},w=(L,F)=>L[n.rowKey]===F,b=(L,F)=>{g.value.categoryCode=F==null?void 0:F.node.code,E(1)},S=L=>{var ae;const F=L[n.rowKey],G=c.value.findIndex(le=>w(le,F))>-1;(ae=x.value)==null||ae.select(L[n.rowKey],!G),k(L,F)},k=(L,F)=>{if(n.multiple){const G=c.value.findIndex(ae=>w(ae,F));G>-1?c.value.splice(G,1):c.value.push(m.value.find(ae=>w(ae,F)))}else c.value=[m.value.find(G=>w(G,F))]},N=(L,F)=>{l.value=l.value.filter(G=>G!==L[n.rowKey]),c.value.splice(F,1)},A=()=>{a("update:data",[...c.value]),a("change",[...c.value])},O=e.ref(!1),$=e.ref({}),V=e.ref(""),I=(L,F)=>{O.value=!1,!(!F||L.modelXml)&&(O.value=!0,ac({modelKey:L[n.rowKey]}).then(({data:G})=>L.modelXml=(G==null?void 0:G.modelXml)||"").catch(()=>L.modelXml="").finally(()=>O.value=!1))},B=L=>{const F=n.data[0];if(O.value=!1,L){if(!F)return;const G=$.value[F[n.rowKey]];if(G){V.value=G;return}O.value=!0,ac({modelKey:F[n.rowKey]}).then(({data:ae})=>V.value=(ae==null?void 0:ae.modelXml)||"").catch(()=>V.value="").finally(()=>O.value=!1)}},Z=async()=>{try{u.value=!0,s.value=!0,await T(),await E()}finally{u.value=!1}};return(L,F)=>{const G=e.resolveComponent("a-spin"),ae=kr,le=e.resolveComponent("a-popover"),U=be,te=e.resolveComponent("a-button"),Q=e.resolveComponent("a-input-group"),J=e.resolveComponent("a-tag"),ne=e.resolveComponent("a-input"),ye=e.resolveComponent("a-tree"),P=e.resolveComponent("a-table"),M=e.resolveComponent("a-drawer");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Q,{mouseover:B},{default:e.withCtx(()=>[e.unref(i).length?(e.openBlock(),e.createBlock(le,{key:0,position:"left",onPopupVisibleChange:B},{content:e.withCtx(()=>[e.createVNode(G,{loading:e.unref(O)},{default:e.withCtx(()=>[e.createVNode(e.unref(fu),{xml:e.unref(V)},null,8,["xml"])]),_:1},8,["loading"])]),default:e.withCtx(()=>[e.createVNode(ae,{modelValue:e.unref(i),"onUpdate:modelValue":F[0]||(F[0]=q=>e.isRef(i)?i.value=q:null),"max-tag-count":3,placeholder:L.$t("Please select a decision"),readonly:"",onFocus:Z},null,8,["modelValue","placeholder"])]),_:1})):(e.openBlock(),e.createBlock(ae,{key:1,"model-value":[],placeholder:L.$t("Please select a decision"),readonly:"",onFocus:Z},null,8,["placeholder"])),e.createVNode(te,{type:"primary",onClick:Z},{default:e.withCtx(()=>[e.createVNode(U,{name:"Search"})]),_:1})]),_:1}),e.createVNode(M,{visible:e.unref(s),"onUpdate:visible":F[6]||(F[6]=q=>e.isRef(s)?s.value=q:null),width:"80vw",title:L.$t(o.modalTitle),onOk:A},{default:e.withCtx(()=>[e.createVNode(G,{loading:e.unref(u),style:{width:"100%",height:"calc(100vh - 142px)",overflow:"hidden","box-sizing":"border-box"}},{default:e.withCtx(()=>[e.createElementVNode("div",_S,[e.createElementVNode("div",NS,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(c),(q,ee)=>(e.openBlock(),e.createBlock(J,{key:q[o.rowKey],color:"arcoblue",closable:"",onClose:re=>N(q,ee)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(q.name),1)]),_:2},1032,["onClose"]))),128))]),e.createElementVNode("div",SS,[e.createElementVNode("div",TS,[e.createVNode(Q,null,{default:e.withCtx(()=>[e.createVNode(ne,{modelValue:e.unref(h),"onUpdate:modelValue":F[1]||(F[1]=q=>e.isRef(h)?h.value=q:null),placeholder:L.$t("Please enter a name"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(te,{type:"primary"},{default:e.withCtx(()=>[e.createVNode(U,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",kS,[e.createVNode(ye,{ref_key:"categoryTreeRef",ref:p,data:e.unref(_),"field-names":{title:"name",key:"id"},size:"mini","block-node":"","default-expand-all":"",onSelect:b},null,8,["data"])])]),e.createElementVNode("div",xS,[e.createVNode(Q,null,{default:e.withCtx(()=>[e.createVNode(ne,{modelValue:e.unref(g).keyword,"onUpdate:modelValue":F[2]||(F[2]=q=>e.unref(g).keyword=q),placeholder:L.$t("Please enter a name or key"),"allow-clear":""},null,8,["modelValue","placeholder"]),e.createVNode(te,{type:"primary",onClick:F[3]||(F[3]=q=>E(1))},{default:e.withCtx(()=>[e.createVNode(U,{name:"Search"})]),_:1})]),_:1}),e.createElementVNode("div",VS,[e.createVNode(P,{ref_key:"dmnTableRef",ref:x,"selected-keys":e.unref(l),"onUpdate:selectedKeys":F[4]||(F[4]=q=>e.isRef(l)?l.value=q:null),"row-key":o.rowKey,"row-selection":e.unref(C),columns:e.unref(D),data:e.unref(m),pagination:{current:e.unref(y).pageNum,pageSize:e.unref(y).pageSize,total:e.unref(f),pageSizeOptions:[15,30,50,100],showTotal:!0,showPageSize:!0},onPageSizeChange:F[5]||(F[5]=q=>(e.unref(y).pageSize=q)&&E(1)),onPageChange:E,onRowClick:S,onSelect:k},{operation:e.withCtx(({record:q})=>[e.createVNode(le,{position:"left",onPopupVisibleChange:ee=>I(q,ee)},{content:e.withCtx(()=>[e.createVNode(G,{loading:e.unref(O)},{default:e.withCtx(()=>[e.createVNode(e.unref(fu),{xml:q.modelXml},null,8,["xml"])]),_:2},1032,["loading"])]),default:e.withCtx(()=>[e.createVNode(te,{type:"text"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(L.$t("Preview")),1)]),_:1})]),_:2},1032,["onPopupVisibleChange"])]),_:1},8,["selected-keys","row-key","row-selection","columns","data","pagination"])])])])])]),_:1},8,["loading"])]),_:1},8,["visible","title"])],64)}}}),DS=e.defineComponent({name:"DmnServiceTask",__name:"DmnServiceTask",setup(o){const t=e.ref(80),n=e.inject(De),a=e.inject(we),r=()=>{const g=n.value,C=a.value,x=C.get("modeling");return{element:g,modeling:x,bpmnModeler:C}},i=Ae({delay:0,trailing:!0},(g,C)=>{const{element:x,modeling:D,bpmnModeler:_}=r(),E=ge(x.businessObject,"Field").filter(w=>w.name===g)[0];if(E)it(D,x,E,C);else{const w=Mt(_,x,x.businessObject,Ve(_,"Field",{name:g,...C}));Te(_,w)}}),s=e.ref(),l=e.ref(),c=e.ref(),u=e.ref(),d=e.ref([]),p=Ae({delay:0,trailing:!0},()=>{const g=d.value[0],{element:C,bpmnModeler:x}=r(),D=ge(C.businessObject,"Field"),_=D.find(w=>w.name==="decisionTableReferenceKey"),T=D.find(w=>w.name==="decisionTableReferenceName"),E=[];E.push({cmd:"element.updateModdleProperties",context:{element:C,moddleElement:_,properties:{string:g==null?void 0:g.modelKey}}}),E.push({cmd:"element.updateModdleProperties",context:{element:C,moddleElement:T,properties:{string:g==null?void 0:g.name}}}),Te(x,E)}),m=()=>{i("fallbackToDefaultTenant",{string:c.value})},f=()=>{i("decisionTaskThrowErrorOnNoHits",{string:u.value})},h=()=>{y();const g=n==null?void 0:n.value,C=g==null?void 0:g.businessObject;if(!C)return;const x=ge(C,"Field");for(const D of x)switch(D.name){case"decisionTableReferenceKey":s.value=D.get("string");break;case"decisionTableReferenceName":l.value=D.get("string");break;case"fallbackToDefaultTenant":c.value=D.get("string");break;case"decisionTaskThrowErrorOnNoHits":u.value=D.get("string");break}d.value=s.value?[{modelKey:s.value,name:l.value||s.value}]:[]},y=()=>{s.value=l.value=c.value=u.value=void 0,d.value=[]};return Ie(h),(g,C)=>{const x=sn,D=AS,_=qe,T=e.resolveComponent("a-switch"),E=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(E,{key:"DmnServiceTask"},{header:e.withCtx(()=>[e.createVNode(x,{name:"dmn-service-task",size:16}),e.createTextVNode(" "+e.toDisplayString(g.$t("DmnServiceTask")),1)]),default:e.withCtx(()=>[e.createVNode(_,{"label-width":e.unref(t),label:g.$t("SelectDmn")},{default:e.withCtx(()=>[e.createVNode(D,{data:e.unref(d),"onUpdate:data":C[0]||(C[0]=w=>e.isRef(d)?d.value=w:null),multiple:!1,onChange:e.unref(p)},null,8,["data","onChange"])]),_:1},8,["label-width","label"]),e.createVNode(_,{"label-width":240,label:g.$t("FallbackToDefaultTenantDmn")},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(c),"onUpdate:modelValue":C[1]||(C[1]=w=>e.isRef(c)?c.value=w:null),"checked-value":"true","unchecked-value":"false",onChange:m},null,8,["modelValue"])]),_:1},8,["label"]),e.createVNode(_,{"label-width":240,label:g.$t("DecisionTaskThrowErrorOnNoHitsDmn")},{default:e.withCtx(()=>[e.createVNode(T,{modelValue:e.unref(u),"onUpdate:modelValue":C[2]||(C[2]=w=>e.isRef(u)?u.value=w:null),"checked-value":"true","unchecked-value":"false",onChange:f},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})}}}),RS=e.defineComponent({name:"CopyServiceTask",__name:"CopyServiceTask",setup(o){const t=e.ref(146),{t:n}=Le.useI18n(),a=e.inject(De),r=e.inject(we),i=e.ref([]),s=e.ref(),l=e.ref(),c={dingtalk:{label:n("DingtalkMessage"),value:"dingtalk"},weixin:{label:n("WechatMessage"),value:"weixin"},default:{label:n("FeishuMessage"),value:"feishu"}},u=async()=>{try{const{data:T,success:E}=await $8();s.value=T,l.value=E,E&&T&&(i.value=[c[T]||c.default])}catch(T){console.error(T)}},d=()=>{const T=a.value,E=r.value,w=E.get("modeling");return{element:T,modeling:w,bpmnModeler:E}},p=e.ref(),m=e.ref([]),f=e.ref(),h=e.ref([]),y=T=>{var O;const E=[],{element:w,bpmnModeler:b}=d(),k=ge(w.businessObject,"Field").filter($=>$.name==="transferToUserNos")[0],N=m.value.map($=>$.code).join(",");k?E.push({cmd:"element.updateModdleProperties",context:{element:w,moddleElement:k,properties:{string:T||N}}}):E.push(...Mt(b,w,w.businessObject,Ve(b,"Field",{name:"transferToUserNos",string:T||N})));const A=(O=ge(w.businessObject,"TransferToUsers"))==null?void 0:O[0];A?E.push({cmd:"element.updateModdleProperties",context:{element:w,moddleElement:A,properties:{body:JSON.stringify(m.value)}}}):E.push(...Mt(b,w,w.businessObject,Ve(b,"TransferToUsers",{body:JSON.stringify(m.value)}))),Te(b,E)},g=()=>{var k,N;const{element:T,modeling:E,bpmnModeler:w}=d(),S=ge(T.businessObject,"Field").filter(A=>A.name==="messageType")[0];S?it(E,T,S,{string:(k=h.value)==null?void 0:k.join(",")}):Dt(w,T,T.businessObject,Ve(w,"Field",{name:"messageType",string:(N=h.value)==null?void 0:N.join(",")}))},C=Ae({delay:0,trailing:!0},T=>{m.value=[],y(T)}),x=Ae({delay:0,trailing:!0},()=>{const{element:T,modeling:E,bpmnModeler:w}=d(),b=f.value;let S=Es(T.businessObject,k=>k.$type==="flowable:Field"&&k.get("name")==="content");S?it(E,T,S,{string:b}):Dt(w,T,T.businessObject,Ve(w,"Field",{name:"content",string:b}))}),D=()=>{var S,k;_();const T=a==null?void 0:a.value,E=T==null?void 0:T.businessObject;if(!E)return;const w=ge(E,"Field");for(const N of w)switch(N.name){case"transferToUserNos":p.value=N.get("string");break;case"content":f.value=N.get("string");break;case"messageType":h.value=(S=N.get("string"))==null?void 0:S.split(",");break}const b=(k=ge(E,"TransferToUsers"))==null?void 0:k[0];b&&(m.value=JSON.parse(b.get("body")||"[]"))},_=()=>{p.value=f.value=void 0,m.value=h.value=[]};return e.onMounted(()=>u()),Ie(D),(T,E)=>{const w=sn,b=e.resolveComponent("a-checkbox-group"),S=qe,k=st,N=xr,A=e.resolveComponent("a-textarea"),O=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(O,{key:"CopyServiceTask"},{header:e.withCtx(()=>[e.createVNode(w,{name:"copy-service-task"}),e.createTextVNode(" "+e.toDisplayString(T.$t("CopyServiceTask")),1)]),default:e.withCtx(()=>[s.value&&l.value?(e.openBlock(),e.createBlock(S,{key:0,label:T.$t("CopyMessage"),"label-width":t.value},{default:e.withCtx(()=>[e.createVNode(b,{modelValue:h.value,"onUpdate:modelValue":E[0]||(E[0]=$=>h.value=$),options:i.value,onChange:g},null,8,["modelValue","options"])]),_:1},8,["label","label-width"])):e.createCommentVNode("",!0),e.createVNode(S,{key:"CopyUsers","label-width":t.value,label:T.$t("CopyUser")},{default:e.withCtx(()=>[e.createVNode(N,{data:m.value,"onUpdate:data":E[2]||(E[2]=$=>m.value=$),onChange:E[3]||(E[3]=$=>y())},{default:e.withCtx(()=>[e.createVNode(k,{modelValue:p.value,"onUpdate:modelValue":E[1]||(E[1]=$=>p.value=$),placeholder:T.$t("Please enter or select a CC person"),onInput:e.unref(C)},null,8,["modelValue","placeholder","onInput"])]),_:1},8,["data"])]),_:1},8,["label-width","label"]),e.createVNode(S,{key:"Content","label-width":t.value,label:T.$t("TransferContent")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:f.value,"onUpdate:modelValue":E[4]||(E[4]=$=>f.value=$),autosize:{minRows:2,maxRows:4},onInput:e.unref(x)},null,8,["modelValue","onInput"])]),_:1},8,["label-width","label"])]),_:1})}}}),IS=e.defineComponent({name:"DataObject",__name:"DataObject",setup(o){const{t}=Le.useI18n(),n=e.inject(we),a=e.inject(De),r=()=>{const k=a.value,N=n.value;let A=z.getBusinessObject(k);z.is(k,"bpmn:Participant")&&(A=k.businessObject.get("processRef"));const O=N.get("modeling");return{element:k,businessObject:A,modeling:O,bpmnModeler:N}};let i;const s=e.ref(0),l=e.computed(()=>[{title:t("name"),width:100,ellipsis:!0,tooltip:!0,dataIndex:"name"},{title:t("DataType"),ellipsis:!0,tooltip:!0,dataIndex:"dataTypeName"},{title:t("DefaultValue"),ellipsis:!0,tooltip:!0,dataIndex:"defaultValue"},{title:t("Operation"),width:160,slotName:"operation"}]),c=e.shallowRef([]),u=L1,d=L1.reduce((k,N)=>(k[N.value]=N.label)&&k,{}),p=e.ref({}),m=e.ref(!1),f=e.shallowRef(null),h=Ye(t("DataNameCanNotBeEmpty")),y=Ye(t("DataTypeCanNotBeEmpty"));let g,C=e.ref(-1);const x=e.computed(()=>{if(p.value.dataType){if(["xsd:string","xsd:long"].includes(p.value.dataType))return"string";if(["xsd:datetime"].includes(p.value.dataType))return"datetime";if(["xsd:int","xsd:double"].includes(p.value.dataType))return"number";if(["xsd:boolean"].includes(p.value.dataType))return"boolean"}}),D=(k,N)=>{p.value={...k||{}},N!==void 0?(C.value=N,g=i[N]):(C.value=-1,g=null),m.value=!0},_=k=>{const{element:N,businessObject:A,modeling:O}=r();O.updateModdleProperties(N,A,{flowElements:A.flowElements.filter($=>$.id!==k.id)})},T=async()=>{var N;if(await((N=f.value)==null?void 0:N.validate()))return!1;C.value>-1?w():E()},E=()=>{const{element:k,modeling:N,bpmnModeler:A,businessObject:O}=r(),{name:$,dataType:V,defaultValue:I}=p.value,B=Ve(A,"Value",{value:I==null?void 0:I.toString()}),Z=Pe(A,"bpmn:ExtensionElements",{values:[B]}),L=Pe(A,"bpmn:DataObject",{name:$,itemSubjectRef:V,extensionElements:Z});N.updateModdleProperties(k,O,{flowElements:[...O.flowElements||[],L]})},w=()=>{const{element:k,bpmnModeler:N}=r(),{name:A,dataType:O,defaultValue:$}=p.value,V=ge(g,"Value")[0],I=[vn(k,g,{name:A,itemSubjectRef:O})];if(V)I.push(vn(k,V,{value:$==null?void 0:$.toString()}));else{const B=Ve(N,"Value",{value:$==null?void 0:$.toString()});I.push(...Mt(N,k,g,B))}Te(N,I)},b=()=>{i=void 0,s.value=0};return Ie(()=>{b();const{element:k,businessObject:N}=r();if(!k)return;i=((N==null?void 0:N.flowElements)||[]).filter(O=>O.$type==="bpmn:DataObject"),c.value=i.map(O=>{const $=O.id,V=O.name,I=O.itemSubjectRef,B=d[I]||I,Z=ge(O,"Value")[0],L=I==="xsd:int"||I==="xsd:double"?Number((Z==null?void 0:Z.value)||0).valueOf():Z==null?void 0:Z.value;return{name:V,id:$,dataType:I,dataTypeName:B,defaultValue:L}})}),(k,N)=>{const A=be,O=e.resolveComponent("a-tag"),$=e.resolveComponent("a-button"),V=e.resolveComponent("a-popconfirm"),I=e.resolveComponent("a-table"),B=e.resolveComponent("icon-plus"),Z=st,L=e.resolveComponent("a-form-item"),F=e.resolveComponent("a-option"),G=po,ae=e.resolveComponent("a-input"),le=e.resolveComponent("a-date-picker"),U=e.resolveComponent("a-input-number"),te=e.resolveComponent("a-radio"),Q=e.resolveComponent("a-radio-group"),J=e.resolveComponent("a-form"),ne=e.resolveComponent("a-drawer"),ye=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(ye,{key:"DataObject"},{header:e.withCtx(()=>[e.createVNode(A,{name:"File"}),e.createTextVNode(e.toDisplayString(k.$t("DataObject"))+" ",1),e.createVNode(O,{color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c).length||0),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(I,{columns:e.unref(l),data:e.unref(c),scroll:{y:240},pagination:!1},{operation:e.withCtx(({record:P,rowIndex:M})=>[e.createVNode($,{type:"text",onClick:q=>D(P,M)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(V,{position:"left",content:k.$t("AreYouSureYouWantToDelete?"),"ok-text":k.$t("Confirm"),"cancel-text":k.$t("Cancel"),onOk:q=>_(P)},{default:e.withCtx(()=>[e.createVNode($,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode($,{type:"primary",class:"inline-large-button",long:"",onClick:N[0]||(N[0]=P=>D())},{default:e.withCtx(()=>[e.createVNode(B),e.createTextVNode(" "+e.toDisplayString(k.$t("AddDataObject")),1)]),_:1}),e.createVNode(ne,{visible:e.unref(m),"onUpdate:visible":N[7]||(N[7]=P=>e.isRef(m)?m.value=P:null),width:"540px",title:k.$t("DataObject"),"on-before-ok":T},{default:e.withCtx(()=>[e.createVNode(J,{ref_key:"dataObjectFormRef",ref:f,model:e.unref(p),"auto-label-width":"",autocomplete:"off"},{default:e.withCtx(()=>[e.createVNode(L,e.mergeProps({field:"name",label:k.$t("Name")},e.unref(h)),{default:e.withCtx(()=>[e.createVNode(Z,{modelValue:e.unref(p).name,"onUpdate:modelValue":N[1]||(N[1]=P=>e.unref(p).name=P),placeholder:k.$t("Please enter a name for the data object")},null,8,["modelValue","placeholder"])]),_:1},16,["label"]),e.createVNode(L,e.mergeProps({field:"dataType",label:k.$t("DataType")},e.unref(y)),{default:e.withCtx(()=>[e.createVNode(G,{modelValue:e.unref(p).dataType,"onUpdate:modelValue":N[2]||(N[2]=P=>e.unref(p).dataType=P),placeholder:k.$t("Please select a data type")},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),({label:P,value:M})=>(e.openBlock(),e.createBlock(F,{key:M,label:P,value:M},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},16,["label"]),e.withDirectives(e.createVNode(L,{field:"event",label:k.$t("DefaultValue"),tooltip:e.unref(x)==="long"?k.$t("Due to page precision limitations, the long integer is configured via string input"):void 0},{default:e.withCtx(()=>[e.unref(x)==="string"?(e.openBlock(),e.createBlock(ae,{key:0,modelValue:e.unref(p).defaultValue,"onUpdate:modelValue":N[3]||(N[3]=P=>e.unref(p).defaultValue=P)},null,8,["modelValue"])):e.createCommentVNode("",!0),e.unref(x)==="datetime"?(e.openBlock(),e.createBlock(le,{key:1,modelValue:e.unref(p).defaultValue,"onUpdate:modelValue":N[4]||(N[4]=P=>e.unref(p).defaultValue=P),"value-format":"YYYY-MM-DDTHH:mm:ss","show-time":""},null,8,["modelValue"])):e.createCommentVNode("",!0),e.unref(x)==="number"?(e.openBlock(),e.createBlock(U,{key:2,modelValue:e.unref(p).defaultValue,"onUpdate:modelValue":N[5]||(N[5]=P=>e.unref(p).defaultValue=P),precision:e.unref(p).dataType==="xsd:int"?0:void 0},null,8,["modelValue","precision"])):e.createCommentVNode("",!0),e.unref(x)==="boolean"?(e.openBlock(),e.createBlock(Q,{key:3,modelValue:e.unref(p).defaultValue,"onUpdate:modelValue":N[6]||(N[6]=P=>e.unref(p).defaultValue=P),size:"mini",type:"button"},{default:e.withCtx(()=>[e.createVNode(te,{value:"true"},{default:e.withCtx(()=>[e.createTextVNode("True")]),_:1}),e.createVNode(te,{value:"false"},{default:e.withCtx(()=>[e.createTextVNode("False")]),_:1})]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]),_:1},8,["label","tooltip"]),[[e.vShow,e.unref(p).dataType]])]),_:1},8,["model"])]),_:1},8,["visible","title"])]),_:1})}}}),OS=e.defineComponent({name:"EventCondition",__name:"EventCondition",setup(o){const t=e.inject(De),n=e.inject(we),a=()=>{const u=t.value,d=n.value,p=d.get("modeling");return{element:u,modeling:p,bpmnModeler:d}},r=e.ref(""),i=e.ref(),s=Ae({delay:0,trailing:!0},()=>{const u=i.value,{element:d,bpmnModeler:p,modeling:m}=a();let f=Ya(d);if(!f){f=Pe(p,"bpmn:ConditionalEventDefinition",{condition:Pe(p,"bpmn:FormalExpression",{body:u})}),m.updateModdleProperties(d,d.businessObject,{eventDefinitions:[f]});return}let h=f.get("condition");if(!h){h=Pe(p,"bpmn:FormalExpression",{body:u}),m.updateModdleProperties(d,f,{condition:h});return}m.updateModdleProperties(d,h,{body:u})}),l=()=>{i.value=void 0};return Ie(()=>{var m;l();const{element:u,bpmnModeler:d}=a();r.value=so(d);const p=Ya(u);i.value=(m=p==null?void 0:p.condition)==null?void 0:m.body}),(u,d)=>{const p=be,m=Bl,f=qe,h=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(h,{key:"EventCondition"},{header:e.withCtx(()=>[e.createVNode(p,{name:"Rows4"}),e.createTextVNode(e.toDisplayString(u.$t("EventCondition")),1)]),default:e.withCtx(()=>[e.createVNode(f,{label:u.$t("CompletionCondition")},{default:e.withCtx(()=>[e.createVNode(m,{value:e.unref(i),"onUpdate:value":d[0]||(d[0]=y=>e.isRef(i)?i.value=y:null),"modal-title":u.$t("EditExpression"),"process-id":e.unref(r),onChange:e.unref(s)},null,8,["value","modal-title","process-id","onChange"])]),_:1},8,["label"])]),_:1})}}}),$S=e.defineComponent({name:"ShapeEscalation",__name:"ShapeEscalation",setup(o){const t=e.inject(De),n=e.inject(we),a=e.ref([]),r=e.ref();let i=[],s;const l=()=>{const d=E2(t.value);r.value=d?d.get("id"):""},c=()=>{var d;s=on((d=t==null?void 0:t.value)==null?void 0:d.businessObject),i=Jo(s.get("rootElements"),"bpmn:Escalation"),a.value=i.map(p=>({name:p.name,value:p.id}))},u=d=>{const p=[],m=_l(t.value);let f;if(d==="new"){const h=wn("Escalation");f=Pe(n.value,"bpmn:Escalation",{id:h,name:h},s),d=f.get("id"),p.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:s,properties:{rootElements:[...s.get("rootElements"),f]}}})}f=f||gr(m,"bpmn:Escalation",d),p.push({cmd:"element.updateModdleProperties",context:{element:t.value,moddleElement:m,properties:{escalationRef:f}}}),Te(n.value,p),r.value=d};return Ie(()=>{if(!(t!=null&&t.value)){r.value="",a.value=[];return}l(),c()}),(d,p)=>{const m=be,f=e.resolveComponent("a-option"),h=po,y=qe,g=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(g,{key:"ShapeEscalation"},{header:e.withCtx(()=>[e.createVNode(m,{name:"Navigation2"}),e.createTextVNode(e.toDisplayString(d.$t("ShapeEscalation")),1)]),default:e.withCtx(()=>[e.createVNode(y,{label:d.$t("SelectEscalation"),tooltip:d.$t("If there are no options, configure the escalation event in the process global event")},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(r),"onUpdate:modelValue":p[0]||(p[0]=C=>e.isRef(r)?r.value=C:null),placeholder:d.$t("Please select Escalation"),onChange:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),C=>(e.openBlock(),e.createBlock(f,{key:C.value,value:C.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label","tooltip"])]),_:1})}}}),LS=e.defineComponent({name:"TerminateEventDefinition",__name:"TerminateEventDefinition",setup(o){const t=e.inject(De),n=e.inject(we),a=()=>{const c=t.value,u=n.value,d=u.get("modeling");return{element:c,modeling:d,bpmnModeler:u}},r=e.ref(),i=()=>{const{element:c,modeling:u}=a(),d=Ja(c);u.updateModdleProperties(c,d,{terminateAll:r.value})},s=()=>{r.value=void 0};return Ie(()=>{s();const{element:c}=a();if(!c)return;const u=Ja(c);r.value=u==null?void 0:u.get("terminateAll")}),(c,u)=>{const d=be,p=e.resolveComponent("a-radio"),m=e.resolveComponent("a-radio-group"),f=qe,h=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(h,{key:"TerminateEventDefinition"},{header:e.withCtx(()=>[e.createVNode(d,{name:"Circle"}),e.createTextVNode(e.toDisplayString(c.$t("TerminateEventDefinition")),1)]),default:e.withCtx(()=>[e.createVNode(f,{label:c.$t("TerminateAll")},{default:e.withCtx(()=>[e.createVNode(m,{modelValue:e.unref(r),"onUpdate:modelValue":u[0]||(u[0]=y=>e.isRef(r)?r.value=y:null),size:"mini",type:"button",onChange:i},{default:e.withCtx(()=>[e.createVNode(p,{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("True")),1)]),_:1}),e.createVNode(p,{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("False")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})}}}),BS=e.defineComponent({name:"VariableEventDefinition",__name:"VariableEventDefinition",setup(o){const t=e.inject(De),n=e.inject(we),a=()=>{const d=t.value,p=n.value,m=p.get("modeling");return{element:d,modeling:m,bpmnModeler:p}},r=e.ref(),i=e.ref(),s=Ae({delay:0,trailing:!0},()=>{const{element:d,modeling:p}=a(),m=Yn(d);p.updateModdleProperties(d,m,{variableName:r.value})}),l=()=>{const{element:d,modeling:p}=a(),m=Yn(d);p.updateModdleProperties(d,m,{variableChangeType:i.value})},c=()=>{r.value=i.value=void 0};return Ie(()=>{c();const{element:d}=a();if(!d)return;const p=Yn(d);p&&(r.value=p.get("variableName"),i.value=p.get("variableChangeType"))}),(d,p)=>{const m=be,f=e.resolveComponent("a-radio"),h=e.resolveComponent("a-radio-group"),y=qe,g=st,C=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(C,{key:"VariableEventDefinition"},{header:e.withCtx(()=>[e.createVNode(m,{name:"Pentagon"}),e.createTextVNode(e.toDisplayString(d.$t("VariableEventDefinition")),1)]),default:e.withCtx(()=>[e.createVNode(y,{label:d.$t("VariableChangeType")},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(i),"onUpdate:modelValue":p[0]||(p[0]=x=>e.isRef(i)?i.value=x:null),size:"mini",type:"button",onChange:l},{default:e.withCtx(()=>[e.createVNode(f,{value:"all"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("All")),1)]),_:1}),e.createVNode(f,{value:"create"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("CreateOnly")),1)]),_:1}),e.createVNode(f,{value:"update"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("UpdateOnly")),1)]),_:1}),e.createVNode(f,{value:"createupdate"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.$t("CreateAndUpdate")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(y,{label:d.$t("VariableName")},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:e.unref(r),"onUpdate:modelValue":p[1]||(p[1]=x=>e.isRef(r)?r.value=x:null),placeholder:d.$t("Please enter a variable name"),onInput:e.unref(s)},null,8,["modelValue","placeholder","onInput"])]),_:1},8,["label"])]),_:1})}}}),Ba=100,PS=e.defineComponent({name:"ShellServiceTask",__name:"ShellServiceTask",setup(o){const t=e.inject(De),n=e.inject(we),a=()=>{const _=t.value,T=n.value,E=T.get("modeling");return{element:_,modeling:E,bpmnModeler:T}},r=/^arg\d+$/;function i(_){const T=_.match(/arg(\d+)$/);if(T&&T[1])return parseInt(T[1])}const s=e.ref(),l=e.ref([]),c=e.ref(),u=e.ref(),d=Ae({delay:0,trailing:!0},(_,T)=>{const{element:E,modeling:w,bpmnModeler:b}=a();let S=Es(E==null?void 0:E.businessObject,k=>z.is(k,"flowable:Field")&&k.name===_);S?w.updateModdleProperties(E,S,{string:T}):(S=Ve(b,"Field",{name:_,string:T}),Dt(b,E,E.businessObject,S))}),p=Ae({delay:0,trailing:!0},()=>{var S;const{element:_,bpmnModeler:T}=a(),E=zh(_.businessObject,k=>z.is(k,"flowable:Field")&&r.test(k.name)),w=l.value.map((k,N)=>{const A=`arg${N+1}`,O=k.value;return Ve(T,"Field",{name:A,string:O})}),b=Mt(T,_,_.businessObject,w);(S=_.businessObject.extensionElements)!=null&&S.values&&b.push({cmd:"element.updateModdleProperties",context:()=>{const k=_.businessObject.extensionElements;return{element:_,moddleElement:k,properties:{values:k.values.filter(N=>!E.includes(N))}}}}),Te(T,b)}),m=()=>d("command",s.value),f=()=>d("outputVariable",u.value),h=()=>d("wait",c.value),y=()=>{l.value.push({}),p()},g=_=>{l.value.splice(_,1),p()},C=Ae({delay:0,trailing:!0},_=>{var k;const{element:T,modeling:E}=a(),w=(k=l.value[_])==null?void 0:k.value,b=`arg${_+1}`;let S=Es(T.businessObject,N=>z.is(N,"flowable:Field")&&N.name===b);S&&E.updateModdleProperties(T,S,{string:w})}),x=()=>{s.value=c.value=u.value=void 0,l.value=[{}]};return Ie(()=>{x();const{element:_}=a();if(!_)return;const T=ge(_.businessObject,"Field"),E=[];for(const w of T){if(w.name==="command"){s.value=w.get("string");continue}if(w.name==="wait"){c.value=w.get("string");continue}if(w.name==="outputVariable"){u.value=w.get("string");continue}if(r.test(w.name)){const b=w.get("string");E.push({idx:i(w.name),value:b})}}l.value=E.length?E.sort((w,b)=>w.idx-b.idx):[{}]}),(_,T)=>{const E=be,w=e.resolveComponent("icon-question-circle-fill"),b=e.resolveComponent("a-popover"),S=st,k=qe,N=e.resolveComponent("a-button"),A=e.resolveComponent("a-input"),O=e.resolveComponent("icon-minus"),$=e.resolveComponent("icon-plus"),V=e.resolveComponent("a-space"),I=e.resolveComponent("a-radio"),B=e.resolveComponent("a-radio-group"),Z=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(Z,{key:"ShellServiceTask"},{header:e.withCtx(()=>[e.createVNode(E,{name:"SquareTerminal"}),e.createTextVNode(e.toDisplayString(_.$t("ShellServiceTask"))+" ",1),e.createVNode(b,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("A maximum of 10 parameters are supported")),1)]),default:e.withCtx(()=>[e.createVNode(w,{style:{"margin-right":"6px"}})]),_:1})]),default:e.withCtx(()=>[e.createVNode(k,{"label-width":Ba,label:_.$t("Command")},{default:e.withCtx(()=>[e.createVNode(S,{modelValue:e.unref(s),"onUpdate:modelValue":T[0]||(T[0]=L=>e.isRef(s)?s.value=L:null),placeholder:_.$t("Please enter a command"),onInput:m},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(k,{"label-width":Ba,label:_.$t("Argument")},{default:e.withCtx(()=>[e.createVNode(V,{direction:"vertical",fill:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(l),(L,F)=>(e.openBlock(),e.createElementBlock("div",{key:F,class:"flex-fill-item"},[e.createVNode(N,{disabled:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("Parameter"))+e.toDisplayString(F+1),1)]),_:2},1024),e.createVNode(A,{modelValue:L.value,"onUpdate:modelValue":G=>L.value=G,style:{flex:"1"},placeholder:_.$t("Please enter the parameters"),onInput:()=>e.unref(C)(F)},null,8,["modelValue","onUpdate:modelValue","placeholder","onInput"]),e.createVNode(N,{disabled:e.unref(l).length===1,type:"primary",title:_.$t("Remove parameter"),status:"danger",onClick:G=>g(F)},{icon:e.withCtx(()=>[e.createVNode(O)]),_:2},1032,["disabled","title","onClick"])]))),128)),e.createVNode(N,{disabled:e.unref(l).length===10,type:"primary",title:_.$t("Add parameter"),long:"",onClick:T[1]||(T[1]=L=>y())},{icon:e.withCtx(()=>[e.createVNode($)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(_.$t("Add parameter")),1)]),_:1},8,["disabled","title"])]),_:1})]),_:1},8,["label"]),e.createVNode(k,{"label-width":Ba,label:_.$t("OutputVariable")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(u),"onUpdate:modelValue":T[2]||(T[2]=L=>e.isRef(u)?u.value=L:null),placeholder:_.$t("Please enter a variable name"),onInput:f},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),e.createVNode(k,{"label-width":Ba,label:_.$t("Wait")},{default:e.withCtx(()=>[e.createVNode(B,{modelValue:e.unref(c),"onUpdate:modelValue":T[3]||(T[3]=L=>e.isRef(c)?c.value=L:null),size:"mini",type:"button",onChange:h},{default:e.withCtx(()=>[e.createVNode(I,{value:"true"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("True")),1)]),_:1}),e.createVNode(I,{value:"false"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_.$t("False")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})}}}),MS=e.defineComponent({name:"AdHocSubProcess",__name:"AdHocSubProcess",setup(o){const t=e.inject(De),n=e.inject(we),a=()=>{const f=t.value,h=n.value,y=h.get("modeling");return{element:f,modeling:y,bpmnModeler:h}},r=e.ref(),i=e.ref(),s=e.ref(),l=e.ref(),c=Ae({delay:0,trailing:!0},()=>{const{element:f,modeling:h,bpmnModeler:y}=a(),g=l.value;let C=f.businessObject.get("completionCondition");C?h.updateModdleProperties(f,C,{body:g}):(C=Pe(y,"bpmn:Expression",{body:g}),h.updateModdleProperties(f,f.businessObject,{completionCondition:C}))}),u=()=>{const{element:f,modeling:h}=a();h.updateModdleProperties(f,f.businessObject,{cancelRemainingInstances:s.value})},d=()=>{const{element:f,modeling:h}=a();h.updateModdleProperties(f,f.businessObject,{ordering:i.value})},p=()=>{i.value=s.value=l.value=void 0};return Ie(()=>{var y;p();const{element:f,bpmnModeler:h}=a();r.value=so(h),f&&(i.value=f.businessObject.get("ordering"),s.value=f.businessObject.get("cancelRemainingInstances"),l.value=(y=f.businessObject.get("completionCondition"))==null?void 0:y.body)}),(f,h)=>{const y=be,g=e.resolveComponent("a-radio"),C=e.resolveComponent("a-radio-group"),x=qe,D=Bl,_=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(_,{key:"AdHocSubProcess"},{header:e.withCtx(()=>[e.createVNode(y,{name:"square-activity"}),e.createTextVNode(e.toDisplayString(f.$t("AdHoc")),1)]),default:e.withCtx(()=>[e.createVNode(x,{label:f.$t("Ordering")},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(i),"onUpdate:modelValue":h[0]||(h[0]=T=>e.isRef(i)?i.value=T:null),size:"mini",type:"button",onChange:d},{default:e.withCtx(()=>[e.createVNode(g,{value:"Parallel"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("Parallel")),1)]),_:1}),e.createVNode(g,{value:"Sequential"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("Sequential")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(x,{label:f.$t("CompletionCondition")},{default:e.withCtx(()=>[e.createVNode(D,{value:e.unref(l),"onUpdate:value":h[1]||(h[1]=T=>e.isRef(l)?l.value=T:null),"modal-title":f.$t("EditExpression"),"process-id":e.unref(r),"use-validate":!1,onChange:e.unref(c)},null,8,["value","modal-title","process-id","onChange"])]),_:1},8,["label"]),e.createVNode(x,{label:f.$t("CancelRemainingInstances")},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:e.unref(s),"onUpdate:modelValue":h[2]||(h[2]=T=>e.isRef(s)?s.value=T:null),size:"mini",type:"button",onChange:u},{default:e.withCtx(()=>[e.createVNode(g,{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("True")),1)]),_:1}),e.createVNode(g,{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(f.$t("False")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})}}}),FS=e.defineComponent({name:"EventListener",__name:"EventListener",setup(o){const{t}=Le.useI18n(),n=e.inject(De),a=e.inject(we);let r;const i=e.computed(()=>[{title:t("EventType"),width:100,ellipsis:!0,tooltip:!0,dataIndex:"events"},{title:t("ListenerType"),ellipsis:!0,tooltip:!0,dataIndex:"listenerType",render:({record:N})=>N.listenerType?t(N.listenerType):"-"},{title:t("ListenerContent"),ellipsis:!0,tooltip:!0,dataIndex:"listenerContent",render:({record:N})=>N.listenerContent||"-"},{title:t("Operation"),width:160,slotName:"operation"}]),s=e.shallowRef([]),l=()=>{const N=n.value,A=a.value;let O=z.getBusinessObject(N);z.is(N,"bpmn:Participant")&&(O=N.businessObject.get("processRef"));const $=A.get("modeling");return{element:N,businessObject:O,modeling:$,bpmnModeler:A}},c=e.ref(!1),u=e.ref({}),d=e.ref(-1),p=e.shallowRef(),m=Ye(t("EventsCanNotBeEmpty")),f=Ye(t("ListenerContentCanNotBeEmpty")),h=Ye(t("EventContentCanNotBeEmpty"));Ye(t("EntityTypeCanNotBeEmpty"));const y=[{label:t("signal"),value:"signal"},{label:t("message"),value:"message"},{label:t("error"),value:"error"},{label:t("globalSignal"),value:"globalSignal"}],g=e.shallowRef([]);let C={};const x=N=>{const{element:A,businessObject:O,bpmnModeler:$}=l(),V=r[N];ea($,A,O,V)},D=(N,A)=>{u.value=N||{throwEvent:!1,listenerType:"class"},A!==void 0?d.value=A:d.value=-1,c.value=!0},_=async()=>{var A;return await((A=p.value)==null?void 0:A.validate())?!1:(d.value>-1?T():E(),!0)},T=()=>{const{element:N}=l(),A=r[d.value];it(a.value.get("modeling"),N,A,hd(u.value))},E=()=>{const{element:N,businessObject:A,bpmnModeler:O}=l(),$=sv(O,u.value,"EventListener");Dt(a.value,N,A,$)},w=N=>{u.value.listenerContent=void 0,u.value.listenerType=N?"signal":"class"},b=()=>{u.value.listenerContent=void 0;const N=u.value.listenerType;g.value=N?C[N]||[]:[]},S=()=>{C={},s.value=[],r=void 0};return Ie(()=>{S();const{businessObject:N}=l();if(!N)return;const A=lo().globalEvents||{},O=Object.values((A==null?void 0:A.signal)||{}),[$,V]=w6(O,I=>I.scope!=="global");C={error:Object.values((A==null?void 0:A.error)||{}),message:Object.values((A==null?void 0:A.message)||{}),signal:$,globalSignal:V},r=ge(N,"EventListener"),s.value=iv(r)}),(N,A)=>{const O=be,$=e.resolveComponent("a-tag"),V=e.resolveComponent("a-button"),I=e.resolveComponent("a-popconfirm"),B=e.resolveComponent("a-table"),Z=e.resolveComponent("icon-plus"),L=e.resolveComponent("a-option"),F=e.resolveComponent("a-tooltip"),G=po,ae=e.resolveComponent("a-form-item"),le=e.resolveComponent("a-radio"),U=e.resolveComponent("a-radio-group"),te=e.resolveComponent("a-select"),Q=st,J=e.resolveComponent("a-form"),ne=e.resolveComponent("a-drawer"),ye=e.resolveComponent("a-collapse-item");return e.openBlock(),e.createBlock(ye,{key:"EventListener"},{header:e.withCtx(()=>[e.createVNode(O,{name:"bell-dot"}),e.createTextVNode(e.toDisplayString(N.$t("EventListener"))+" ",1),e.createVNode($,{color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s).length),1)]),_:1})]),default:e.withCtx(()=>[e.createVNode(B,{columns:e.unref(i),data:e.unref(s),scroll:{y:240},pagination:!1},{operation:e.withCtx(({record:P,rowIndex:M})=>[e.createVNode(V,{type:"text",onClick:q=>D(P,M)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("Edit")),1)]),_:2},1032,["onClick"]),e.createVNode(I,{position:"left",content:N.$t("AreYouSureYouWantToDelete?"),"ok-text":N.$t("Confirm"),"cancel-text":N.$t("Cancel"),onOk:q=>x(M)},{default:e.withCtx(()=>[e.createVNode(V,{type:"text",status:"danger"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("Remove")),1)]),_:1})]),_:2},1032,["content","ok-text","cancel-text","onOk"])]),_:1},8,["columns","data"]),e.createVNode(V,{type:"primary",class:"inline-large-button",long:"",onClick:A[0]||(A[0]=P=>D())},{default:e.withCtx(()=>[e.createVNode(Z),e.createTextVNode(" "+e.toDisplayString(N.$t("AddListener")),1)]),_:1}),e.createVNode(ne,{visible:e.unref(c),"onUpdate:visible":A[8]||(A[8]=P=>e.isRef(c)?c.value=P:null),width:"540px",title:N.$t("EventListener"),"on-before-ok":_},{default:e.withCtx(()=>[e.createVNode(J,{ref_key:"listenerFormRef",ref:p,model:e.unref(u),"auto-label-width":"",autocomplete:"off",size:"mini",onFinish:_},{default:e.withCtx(()=>[e.createVNode(ae,e.mergeProps({field:"events",label:N.$t("EventType")},e.unref(m)),{default:e.withCtx(()=>[e.createVNode(G,{modelValue:e.unref(u).events,"onUpdate:modelValue":A[1]||(A[1]=P=>e.unref(u).events=P),multiple:"","max-tag-count":2},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(ov),P=>(e.openBlock(),e.createBlock(F,{key:P.value,position:"left",content:N.$t(P.tooltip)},{default:e.withCtx(()=>[e.createVNode(L,{value:P.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.label),1)]),_:2},1032,["value"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue"])]),_:1},16,["label"]),e.createVNode(ae,{field:"throwEvent",label:N.$t("ThrowEvent")},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:e.unref(u).throwEvent,"onUpdate:modelValue":A[2]||(A[2]=P=>e.unref(u).throwEvent=P),type:"button",onChange:w},{default:e.withCtx(()=>[e.createVNode(le,{value:!0},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("True")),1)]),_:1}),e.createVNode(le,{value:!1},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("False")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.unref(u).throwEvent?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(ae,{field:"listenerType",label:N.$t("RethrowEventType")},{default:e.withCtx(()=>[e.createVNode(te,{modelValue:e.unref(u).listenerType,"onUpdate:modelValue":A[3]||(A[3]=P=>e.unref(u).listenerType=P),style:{width:"100%"},onChange:b},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(y,P=>e.createVNode(L,{key:P.value,value:P.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.label),1)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(ae,e.mergeProps({field:"listenerContent",label:N.$t("RethrowEvent")},e.unref(h)),{default:e.withCtx(()=>[e.createVNode(G,{modelValue:e.unref(u).listenerContent,"onUpdate:modelValue":A[4]||(A[4]=P=>e.unref(u).listenerContent=P),style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(g),P=>(e.openBlock(),e.createBlock(L,{key:P.value,value:P.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])]),_:1},16,["label"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(ae,{field:"listenerType",label:N.$t("ListenerType")},{default:e.withCtx(()=>[e.createVNode(U,{modelValue:e.unref(u).listenerType,"onUpdate:modelValue":A[5]||(A[5]=P=>e.unref(u).listenerType=P),type:"button"},{default:e.withCtx(()=>[e.createVNode(le,{value:"class"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("Class")),1)]),_:1}),e.createVNode(le,{value:"delegateExpression"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(N.$t("delegateExpression")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"]),e.createVNode(ae,e.mergeProps({field:"listenerContent",label:N.$t("ListenerContent")},e.unref(f)),{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:e.unref(u).listenerContent,"onUpdate:modelValue":A[6]||(A[6]=P=>e.unref(u).listenerContent=P)},null,8,["modelValue"])]),_:1},16,["label"]),e.createVNode(ae,{field:"entityType",label:N.$t("EntityType")},{default:e.withCtx(()=>[e.createVNode(te,{modelValue:e.unref(u).entityType,"onUpdate:modelValue":A[7]||(A[7]=P=>e.unref(u).entityType=P),"allow-clear":""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(av),P=>(e.openBlock(),e.createBlock(F,{key:P.value,position:"left",content:N.$t(P.tooltip)},{default:e.withCtx(()=>[e.createVNode(L,{value:P.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(P.label),1)]),_:2},1032,["value"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])],64))]),_:1},8,["model"])]),_:1},8,["visible","title"])]),_:1})}}}),jS={class:"properties-penal_header"},qS={class:"properties-penal_content"},US=e.defineComponent({name:"BpmnPanel",__name:"index",props:{local:{type:String,default:"zh_CN"}},setup(o){const{t}=Le.useI18n(),n=e.inject(we),a=["ShapeGeneration","ShapeSignal","ShapeTime","ShapeMessage","ShapeError","ShapeEscalation","EventCondition","TerminateEventDefinition","VariableEventDefinition","SequenceFlow","UserTask","ScriptTask","CallActivity","ServiceTask","CopyServiceTask","CamelServiceTask","ScServiceTask","MailServiceTask","MqServiceTask","RestServiceTask","HttpServiceTask","DmnServiceTask","ShellServiceTask","AdHocSubProcess"],r={copy:RS,sc:F9,mail:L_,mq:B_,rest:P_,http:M_,dmn:DS,shell:PS},i=t("The attached activity (task) instance is terminated and the successor route to the event is executed"),s=t("The attached activity (task) instance continues to execute while the successor route to the event is executed"),l={MessageBoundaryEvent:i,TimerBoundaryEvent:i,SignalBoundaryEvent:i,EscalationBoundaryEvent:i,ConditionalBoundaryEvent:i,MessageBoundaryEventNonInterrupting:s,SignalBoundaryEventNonInterrupting:s,TimerBoundaryEventNonInterrupting:s,EscalationBoundaryEventNonInterrupting:s,ConditionalBoundaryEventNonInterrupting:s,TerminateEndEvent:t("When a process reaches the termination end event, the process is terminated"),CancelEndEvent:t("The cancel-end event can only be used in conjunction with a BPMN transaction sub-process, which can cancel the execution of a transactional sub-process and can only be executed within the sub-process"),ConditionalStartEvent:t("The conditional start event is only available for the underlying process and the event sub-process (i.e., the triggeredByEvent property of the sub-process is true)")},c=e.ref(!0),u=e.shallowRef([]),d=e.shallowRef(),p=e.ref(),m=e.ref("Process"),f=e.ref("Process"),h=e.ref([...a]);function y(b){return n.value.get(b)}const g=Ae({delay:200},b=>{try{let S=b;if(!S&&(S=n.value.get("canvas").getRootElement(),!S||!S.type))return console.warn("No Element found!");S.type==="label"&&(S=S.labelTarget);let k=H6(S);z.is(S,"bpmn:Collaboration")?(f.value="Process",m.value=j1.Process):(f.value=k,m.value=j1[k]),d.value=S,p.value=S.id,C(),e.nextTick(()=>{Ct.emit("element-update",S)})}catch(S){console.error(S)}}),C=()=>{var S;const b=[Jh];if(d.value.parent||b.push(Xh),z.is(d.value,"bpmn:AdHocSubProcess")&&b.push(MS),v2(d.value)&&b.push(Qh),h2(d.value)&&b.push(e7),f2(d.value)&&b.push(A7),m2(d.value)&&b.push(D7),b2(d.value)&&b.push($S),g2(d.value)&&b.push(OS),qm(d.value)&&b.push(LS),y2(d.value)&&b.push(BS),c6(d.value)&&b.push(xv),_2(d.value)&&(b.push(s9),b.push(Hv),b.push(Mv)),i6(d.value)&&b.push(x9),s6(d.value)){const k=(S=d.value)==null?void 0:S.businessObject.get("type");k!=="camel"&&b.push(r[k]||d9)}l6(d.value)&&b.push(C9),r6(d.value)&&b.push(uv),p6(d.value)&&b.push(FS),a6(d.value)&&b.push(l9),u6(d.value)&&b.push(Pv),d6(d.value)&&b.push(IS),b.push(L7,R7),u.value=b},x=()=>{n!=null&&n.value||console.log("属性面板初始化异常","bpmnModeler is undefined");let b=!1;n.value.on(["connectionSegment.move.start","shape.move.start","bendpoint.move.start"],()=>{b=!0}),n.value.on(["connectionSegment.move.end","shape.move.end","bendpoint.move.end"],2e3,()=>{b=!1}),n.value.on("root.added",({element:S})=>{g(S)}),n.value.on("elementTemplates.changed",()=>{g()}),n.value.on("elements.changed",({elements:S=[]})=>{const k=E(S,d.value);k&&w(k)&&g(k)}),n.value.on("selection.changed",({newSelection:S=[]})=>{b||d.value===S[0]||(g(S[0]),S[0]?h.value=[...a]:h.value=["ShapeGeneration"])})},D=e.ref(!1),_=()=>{n.value.on("tokenSimulation.toggleMode",({active:b})=>{D.value=b,b?c.value&&(c.value=!1):c.value=!0})},T=()=>{if(D.value)return Xt.Message.warning(t("Properties cannot be edited during process simulation, so exit the simulation first"));c.value=!c.value};function E(b,S){return K4(b,k=>k===S)}function w(b){return b&&n.value.get("elementRegistry").get(b.id)}return e.watchEffect(()=>{n!=null&&n.value&&(x(),_(),zm())}),e.provide(De,d),e.provide(Ko,y),(b,S)=>{const k=e.resolveComponent("icon-double-left"),N=sn,A=e.resolveComponent("icon-question-circle-fill"),O=e.resolveComponent("a-popover"),$=e.resolveComponent("a-collapse"),V=e.resolveComponent("a-config-provider");return e.openBlock(),e.createBlock(V,{locale:o.local==="zh_CN"?e.unref(B6):e.unref(U6),size:"mini"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["bpmn-properties-panel",{open:e.unref(c)}])},[e.createElementVNode("div",{class:"toggle-btn",onClick:T},[e.createVNode(k)]),e.createElementVNode("div",jS,[e.createVNode(N,{name:e.unref(m),size:30},null,8,["name"]),e.createElementVNode("p",null,[e.createElementVNode("span",null,e.toDisplayString(b.$t(e.unref(f))),1),l[e.unref(f)]?(e.openBlock(),e.createBlock(O,{key:0,position:"tr"},{content:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(l[e.unref(f)]),1)]),default:e.withCtx(()=>[e.createVNode(A,{size:"18px",style:{"margin-left":"6px"}})]),_:1})):e.createCommentVNode("",!0)])]),e.createElementVNode("div",qS,[e.createVNode($,{"active-key":e.unref(h),"onUpdate:activeKey":S[0]||(S[0]=I=>e.isRef(h)?h.value=I:null),bordered:!1,"expand-icon-position":"right",size:"small",style:{"border-radius":"0"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(u),I=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(I),{key:I.__name}))),128))]),_:1},8,["active-key"])])],2)]),_:1},8,["locale"])}}}),HS="#10d170",xu="#6aa1ff",Vu="#ff9a2e",Au="#f53f3f",ZS=e.defineComponent({name:"BpmnLinter",__name:"index",setup(o){const t=e.inject(we),n=e.ref({}),a=e.ref({error:0,warn:0,info:0}),r=e.ref([]),i=e.ref(!0),s=c=>{c.on("bpmn-linting.completed",({issues:u,count:d})=>{n.value={};for(const p in u){let m=0,f=0,h=0,y="";for(const g of u[p])y=g.name,g.category==="error"&&m++,g.category==="warn"&&f++,g.category==="info"&&h++;n.value[p]={name:y,count:{error:m,warn:f,info:h},issues:u[p]}}a.value=d}),c.on("selection.changed",({newSelection:u=[]})=>{r.value=u.filter(d=>n.value[d.id]).map(d=>d.id)})},l=c=>{const u=t.value.get("selection"),d=t.value.get("elementRegistry");u.select([d.find(p=>p.id===c)])};return Ct.on("modeler-init",s),e.onUnmounted(()=>{Ct.removeListener("modeler-init",s)}),(c,u)=>{const d=e.resolveComponent("icon-double-up"),p=e.resolveComponent("icon-close-circle"),m=e.resolveComponent("a-tag"),f=e.resolveComponent("icon-exclamation-circle"),h=e.resolveComponent("icon-info-circle"),y=be,g=e.resolveComponent("a-button"),C=e.resolveComponent("a-collapse-item"),x=e.resolveComponent("a-collapse"),D=e.resolveComponent("a-card");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bpmn-linter",{open:e.unref(i)}])},[e.createElementVNode("div",{class:"toggle-btn",onClick:u[0]||(u[0]=_=>i.value=!e.unref(i))},[e.createVNode(d)]),e.createVNode(D,{title:c.$t("ProcessLint"),hoverable:""},{extra:e.withCtx(()=>[e.createVNode(m,{color:e.unref(a).error?Au:HS,size:"small",title:c.$t("ProcessLintError")},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(e.unref(a).error),1)]),_:1},8,["color","title"]),e.withDirectives(e.createVNode(m,{color:Vu,size:"small",title:c.$t("ProcessLintWarning")},{icon:e.withCtx(()=>[e.createVNode(f)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(e.unref(a).warn),1)]),_:1},8,["title"]),[[e.vShow,e.unref(a).warn]]),e.withDirectives(e.createVNode(m,{color:xu,size:"small",title:c.$t("ProcessLintTip")},{icon:e.withCtx(()=>[e.createVNode(h)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(e.unref(a).info),1)]),_:1},8,["title"]),[[e.vShow,e.unref(a).info]])]),default:e.withCtx(()=>[e.createVNode(x,{"active-key":e.unref(r),"onUpdate:activeKey":u[1]||(u[1]=_=>e.isRef(r)?r.value=_:null),bordered:!1},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(n),(_,T)=>(e.openBlock(),e.createBlock(C,{key:T,header:_.name||T},{extra:e.withCtx(()=>[e.createVNode(m,{color:Au,size:"small",title:c.$t("ProcessLintError")},{icon:e.withCtx(()=>[e.createVNode(p)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(_.count.error),1)]),_:2},1032,["title"]),e.withDirectives(e.createVNode(m,{color:Vu,size:"small",title:c.$t("ProcessLintWarning")},{icon:e.withCtx(()=>[e.createVNode(f)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(_.count.warn),1)]),_:2},1032,["title"]),[[e.vShow,_.count.warn]]),e.withDirectives(e.createVNode(m,{color:xu,size:"small",title:c.$t("ProcessLintTip")},{icon:e.withCtx(()=>[e.createVNode(h)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(_.count.info),1)]),_:2},1032,["title"]),[[e.vShow,_.count.info]]),e.createVNode(g,{class:"bpmn-linter__location",size:"mini",title:c.$t("NavigateToTheElement"),onClick:e.withModifiers(E=>l(T),["stop"])},{default:e.withCtx(()=>[e.createVNode(y,{size:12,name:"LocateFixed"})]),_:2},1032,["title","onClick"])]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.issues,(E,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"bpmn-linter__info-item"},e.toDisplayString(`${w+1}. ${c.$t(E.message)}`),1))),128))]),_:2},1032,["header"]))),128))]),_:1},8,["active-key"])]),_:1},8,["title"])],2)}}}),zS=e.defineComponent({__name:"SaveTool",props:{showLabel:{type:Boolean,default:!1}},setup(o){let t={};const{t:n}=Le.useI18n(),a=e.inject(we),r=e.ref(!1),i=async()=>{var c,u;try{r.value=!0;let d;const{xml:p}=await a.value.saveXML({format:!0,preamble:!0}),m=a.value.get("canvas").getRootElement();if(z.is(m,"bpmn:Collaboration")){const f=m.children[0].businessObject.processRef,h=f.id,y=f.name,g=(c=ge(f,"ProcessNameExp"))==null?void 0:c[0],C=g==null?void 0:g.get("body");d=await rc({modelKey:h,modelName:y,modelXml:p,processNameExp:C})}else{const f=m.businessObject.id,h=m.businessObject.name,y=(u=ge(m.businessObject,"ProcessNameExp"))==null?void 0:u[0],g=y==null?void 0:y.get("body");d=await rc({modelKey:f,modelName:h,modelXml:p,processNameExp:g})}d.success?Xt.Message.success(n("Save success")):Xt.Message.error(n("Save failed"))}catch(d){console.error(d)}finally{r.value=!1}},s=()=>{const c=t.error||0;c>0?Xt.Modal.warning({title:n("Warning"),content:`${n("Process has")} ${c} ${n("error, are you sure you want to save it")}？`,okText:n("Confirm"),cancelText:n("Cancel"),hideCancel:!1,onOk:i}):i()},l=c=>{c.on("bpmn-linting.completed",({issues:u,count:d})=>{t=d})};return Ct.on("modeler-init",l),e.onUnmounted(()=>{Ct.removeListener("modeler-init",l)}),(c,u)=>{const d=be,p=e.resolveComponent("a-button"),m=e.resolveComponent("a-popover");return o.showLabel?(e.openBlock(),e.createBlock(p,{key:0,loading:e.unref(r),secondary:"",onClick:s},{default:e.withCtx(()=>[e.createVNode(d,{name:"Save",size:16}),e.createElementVNode("span",null,e.toDisplayString(c.$t("saveModel")),1)]),_:1},8,["loading"])):(e.openBlock(),e.createBlock(m,{key:1},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("saveModel")),1)]),default:e.withCtx(()=>[e.createVNode(p,{loading:e.unref(r),secondary:"",onClick:s},{default:e.withCtx(()=>[e.createVNode(d,{name:"Save",size:16})]),_:1},8,["loading"])]),_:1}))}}}),GS=e.defineComponent({__name:"ImportsTool",props:{resetIdWithImport:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!1}},setup(o){const t=o,n=e.ref(null),a=e.inject(we),r=e.inject(Iu),i=async c=>{t.resetIdWithImport&&(c=_m(r.value,c));const{warnings:u}=await a.value.importXML(c);if(u)for(const p of u)console.warn(p);a.value.get("canvas").zoom("fit-viewport","center")},s=()=>{n.value&&n.value.click()},l=()=>{if(n.value&&n.value.files){const c=n.value.files[0],u=new FileReader;u.readAsText(c),u.onload=function(){const d=this.result;i(d)},n.value.value="",n.value.files=null}};return(c,u)=>{const d=be,p=e.resolveComponent("a-button"),m=e.resolveComponent("a-popover");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.showLabel?(e.openBlock(),e.createBlock(p,{key:0,disabled:o.disabled,secondary:"",onClick:s},{default:e.withCtx(()=>[e.createVNode(d,{name:"Folder",size:16}),e.createElementVNode("span",null,e.toDisplayString(c.$t("openFile")),1)]),_:1},8,["disabled"])):(e.openBlock(),e.createBlock(m,{key:1},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.$t("openFile")),1)]),default:e.withCtx(()=>[e.createVNode(p,{disabled:o.disabled,secondary:"",onClick:s},{default:e.withCtx(()=>[e.createVNode(d,{name:"Folder",size:16})]),_:1},8,["disabled"])]),_:1})),e.createElementVNode("input",{ref_key:"importRef",ref:n,type:"file",style:{display:"none"},accept:".xml,.bpmn",onChange:l},null,544)],64)}}});function Du(o,t,n){const a=encodeURIComponent(n);return{filename:`${t}.${o.toLowerCase()}`,href:`data:application/${o==="svg"?"text/xml":"bpmn20-xml"};charset=UTF-8,${a}`,data:n}}function as(o,t){if(o&&t){const n=document.createElement("a");n.download=t,n.href=o,n.click(),URL.revokeObjectURL(n.href)}}function KS(o){const t={svg:null,mimetype:"image/png",quality:.92,width:"auto",height:"auto",outputFormat:"base64"};for(const n in o)t[n]=o[n];return new Promise(function(n){let a;if(typeof t.svg=="string"){const u=document.createElement("div");u.style.display="none",u.innerHTML=t.svg,a=u.firstElementChild}else a=t.svg;const r=document.createElement("canvas"),i=r.getContext("2d"),s=new XMLSerializer().serializeToString(a),l="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(s))),c=new Image;c.onload=function(){let u,d;t.width==="auto"&&t.height!=="auto"?u=c.width/c.height*t.height:t.width==="auto"?u=c.naturalWidth:u=t.width,t.height==="auto"&&t.width!=="auto"?d=c.height/c.width*t.width:t.height==="auto"?d=c.naturalHeight:d=t.height,r.width=u,r.height=d,i.drawImage(c,0,0,u,d),o.outputFormat=="blob"?r.toBlob(function(p){n(p)},t.mimetype,t.quality):n(r.toDataURL(t.mimetype,t.quality))},c.src=l})}const WS={class:"button-list_column"},YS={key:0},JS=e.defineComponent({__name:"ExportsTools",props:{showLabel:{type:Boolean,default:!1}},setup(o){const t=e.inject(we),n=()=>{var p,m,f;const u=t.value.get("elementRegistry");let d=(p=u.find(h=>h.type==="bpmn:Process"))==null?void 0:p.businessObject;return d||(d=(f=(m=u.find(h=>h.type==="bpmn:Participant"))==null?void 0:m.businessObject)==null?void 0:f.processRef),(d==null?void 0:d.name)||(d==null?void 0:d.id)||"diagram"},a=async u=>{try{const d=n();if(u==="xml"||u==="bpmn"){const{error:p,xml:m}=await t.value.saveXML({format:!0});p&&console.error(`[Process Designer Warn ]: ${p.message||p}`);const{href:f,filename:h}=Du(u.toUpperCase(),d,m);as(f,h)}else{const{svg:p}=await t.value.saveSVG(),m=l(p),{href:f,filename:h}=Du("SVG",d,m);as(f,h)}}catch(d){console.error(`[Process Designer Warn ]: ${d.message||d}`)}},r=()=>{a("xml")},i=()=>{a("bpmn")},s=()=>{a("svg")},l=u=>{function d(m){const f=/var\(--([^)]+)\)/g;return m.replace(f,(h,y)=>p(y)||h)}function p(m){if(m.includes("color-bg"))return"none";const f=document.querySelector(".djs-container.djs-parent");return window.getComputedStyle(f).getPropertyValue(`--${m}`)}return d(u)},c=async()=>{const{svg:u}=await t.value.saveSVG(),d=l(u),p=await KS({svg:d,outputFormat:"blob"}),m=n();p instanceof Blob&&as(URL.createObjectURL(p),m)};return(u,d)=>{const p=e.resolveComponent("a-button"),m=be,f=e.resolveComponent("a-popover");return e.openBlock(),e.createBlock(f,null,{content:e.withCtx(()=>[e.createElementVNode("div",WS,[e.createVNode(p,{onClick:i},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("exportAsBPMN")),1)]),_:1}),e.createVNode(p,{onClick:r},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("exportAsXML")),1)]),_:1}),e.createVNode(p,{onClick:s},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("exportAsSVG")),1)]),_:1}),e.createVNode(p,{onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.$t("exportAsPNG")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(p,{secondary:""},{default:e.withCtx(()=>[e.createVNode(m,{name:"Download",size:16}),o.showLabel?(e.openBlock(),e.createElementBlock("span",YS,e.toDisplayString(u.$t("exportAs")),1)):e.createCommentVNode("",!0)]),_:1})]),_:1})}}}),XS={class:"preview-model"},QS=e.defineComponent({__name:"PreviewsTools",props:{showLabel:{type:Boolean,default:!1}},setup(o){const t=e.inject(we),n=e.ref(!1),a=e.ref(""),r=async()=>{try{n.value=!0;const{xml:i}=await t.value.saveXML({format:!0,preamble:!0});a.value=i||""}catch(i){console.error(i)}};return(i,s)=>{const l=be,c=e.resolveComponent("a-button"),u=e.resolveComponent("a-popover"),d=e.resolveComponent("highlightjs"),p=e.resolveComponent("a-modal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[o.showLabel?(e.openBlock(),e.createBlock(c,{key:0,secondary:"",onClick:r},{default:e.withCtx(()=>[e.createVNode(l,{name:"Eye",size:16}),e.createElementVNode("span",null,e.toDisplayString(i.$t("previewAsXML")),1)]),_:1})):(e.openBlock(),e.createBlock(u,{key:1},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.$t("previewAsXML")),1)]),default:e.withCtx(()=>[e.createVNode(c,{secondary:"",onClick:r},{default:e.withCtx(()=>[e.createVNode(l,{name:"Eye",size:16})]),_:1})]),_:1})),e.createVNode(p,{visible:n.value,"onUpdate:visible":s[0]||(s[0]=m=>n.value=m),footer:!1,title:i.$t("previewAs"),width:"64vw"},{default:e.withCtx(()=>[e.createElementVNode("div",XS,[e.createVNode(d,{language:"xml",code:a.value},null,8,["code"])])]),_:1},8,["visible","title"])],64)}}}),eT={key:2},tT=e.defineComponent({__name:"MocksTools",props:{showLabel:{type:Boolean,default:!1}},setup(o){const t=e.inject(we),n=e.ref(!1),a=()=>{var r,i;(i=(r=t==null?void 0:t.value)==null?void 0:r.get("toggleMode"))==null||i.toggleMode(),n.value=!n.value};return(r,i)=>{const s=be,l=e.resolveComponent("a-button"),c=e.resolveComponent("a-popover");return e.openBlock(),e.createBlock(c,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(n)?r.$t("unableMock"):r.$t("enableMock")),1)]),default:e.withCtx(()=>[e.createVNode(l,{secondary:"",onClick:a},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createBlock(s,{key:1,name:"log-out",size:16})):(e.openBlock(),e.createBlock(s,{key:0,name:"CirclePlay",size:16})),o.showLabel?(e.openBlock(),e.createElementBlock("span",eT,e.toDisplayString(r.$t("mockAs")),1)):e.createCommentVNode("",!0)]),_:1})]),_:1})}}}),nT=e.defineComponent({__name:"AlignsTools",props:{disabled:{type:Boolean,default:!1}},setup(o){const t=e.inject(we),{t:n}=Le.useI18n(),a=e.computed(()=>[{name:n("alignLeft"),key:"left",icon:"AlignStartVertical"},{name:n("alignCenter"),key:"center",icon:"AlignCenterVertical"},{name:n("alignRight"),key:"right",icon:"AlignEndVertical"},{name:n("alignTop"),key:"top",icon:"AlignStartHorizontal"},{name:n("alignMiddle"),key:"middle",icon:"AlignCenterHorizontal"},{name:n("alignBottom"),key:"bottom",icon:"AlignEndHorizontal"}]),r=i=>{const s=t.value.get("modeling"),l=t.value.get("selection"),c=t.value.get("alignElements");if(s&&l){const u=l.get();if(!u||u.length<=1)return Xt.Message.warning(n("Hold down the Shift key to select multiple element alignments"));c.trigger(u,i)}};return(i,s)=>{const l=e.resolveComponent("a-button"),c=e.resolveComponent("a-popover"),u=e.resolveComponent("a-button-group");return e.openBlock(),e.createBlock(u,{disabled:o.disabled},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,d=>(e.openBlock(),e.createBlock(c,{key:d.key},{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.name),1)]),default:e.withCtx(()=>[e.createVNode(l,{onClick:p=>r(d.key)},{default:e.withCtx(()=>[e.createVNode(be,{name:d.icon},null,8,["name"])]),_:2},1032,["onClick"])]),_:2},1024))),128))]),_:1},8,["disabled"])}}}),oT={style:{"text-align":"center",display:"inline-block",width:"40px"}},aT=e.defineComponent({__name:"ScalesTools",setup(o){const t=e.inject(we),n=e.ref(1),a=e.ref(!0),r=e.ref(!0),i=p=>{const m=t.value.get("canvas");p==="fit-viewport"?m.zoom("fit-viewport","center"):m.zoom(p,{x:0,y:0})},s=p=>{n.value=Math.floor(n.value*100-.1*100)/100,i(n.value)},l=p=>{n.value=Math.floor(n.value*100+.1*100)/100,i(n.value)},c=()=>{var p;(p=t.value.get("zoomScroll"))==null||p.toggle(),a.value=!a.value},u=()=>{var p;(p=t.value.get("minimap"))==null||p.toggle(),r.value=!r.value,mr("minimap",{enabled:r.value})},d=p=>{try{const m=p.get("canvas"),f=p.get("minimap");n.value=(m==null?void 0:m.zoom())||1,r.value=(f==null?void 0:f.isOpen())||!1,p.on("canvas.viewbox.changed",({viewbox:h})=>{n.value=h.scale||1})}finally{n.value=1}};return Ct.on("modeler-init",d),e.onUnmounted(()=>{Ct.removeListener("modeler-init",d)}),(p,m)=>{const f=be,h=e.resolveComponent("a-button"),y=e.resolveComponent("a-popover"),g=e.resolveComponent("a-button-group");return e.openBlock(),e.createBlock(g,null,{default:e.withCtx(()=>[e.createVNode(y,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("zoomOut")),1)]),default:e.withCtx(()=>[e.createVNode(h,{onClick:m[0]||(m[0]=C=>s())},{default:e.withCtx(()=>[e.createVNode(f,{name:"ZoomOut"})]),_:1})]),_:1}),e.createVNode(y,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("zoomReset")),1)]),default:e.withCtx(()=>[e.createVNode(h,{onClick:m[1]||(m[1]=C=>i("fit-viewport"))},{default:e.withCtx(()=>[e.createElementVNode("span",oT,e.toDisplayString(Math.floor(n.value*10)*10+"%"),1)]),_:1})]),_:1}),e.createVNode(y,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("zoomIn")),1)]),default:e.withCtx(()=>[e.createVNode(h,{onClick:m[2]||(m[2]=C=>l())},{default:e.withCtx(()=>[e.createVNode(f,{name:"ZoomIn"})]),_:1})]),_:1}),e.createVNode(y,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.value?p.$t("unableMouseControl"):p.$t("enableMouseControl")),1)]),default:e.withCtx(()=>[e.createVNode(h,{class:e.normalizeClass({"is-unable":!a.value}),onClick:m[3]||(m[3]=C=>c())},{default:e.withCtx(()=>[e.createVNode(f,{name:"Mouse"})]),_:1},8,["class"])]),_:1}),e.createVNode(y,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.value?p.$t("unableMinimap"):p.$t("enableMinimap")),1)]),default:e.withCtx(()=>[e.createVNode(h,{class:e.normalizeClass({"is-unable":!r.value}),onClick:m[4]||(m[4]=C=>u())},{default:e.withCtx(()=>[e.createVNode(f,{name:"Map"})]),_:1},8,["class"])]),_:1})]),_:1})}}}),rT=e.defineComponent({__name:"CommandsTools",props:{disabled:{type:Boolean,default:!1}},setup(o){const t=e.inject(we),n=e.ref(!1),a=e.ref(!1),r=(p,m)=>{try{const f=t.value.get("commandStack");f&&((!f[`can${p}`]||f[`can${p}`]())&&f[p.toLowerCase()]&&f[p.toLowerCase()](),m&&m(),s(f))}catch(f){console.error(f)}},i=()=>{var p;(p=t.value)==null||p.importXML(Ou(Date.now().toString()))},s=p=>{n.value=p.canUndo(),a.value=p.canRedo()},l=()=>r("Undo"),c=()=>r("Redo"),u=()=>r("Clear",i),d=p=>{const m=p.get("commandStack");s(m),p.on("commandStack.changed",()=>{s(m)})};return Ct.on("modeler-init",d),e.onUnmounted(()=>{Ct.removeListener("modeler-init",d)}),(p,m)=>{const f=be,h=e.resolveComponent("a-button"),y=e.resolveComponent("a-popover"),g=e.resolveComponent("a-button-group");return e.openBlock(),e.createBlock(g,{disabled:o.disabled},{default:e.withCtx(()=>[e.createVNode(y,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("undo")),1)]),default:e.withCtx(()=>[e.createVNode(h,{disabled:!n.value,onClick:l},{default:e.withCtx(()=>[e.createVNode(f,{name:"Undo2"})]),_:1},8,["disabled"])]),_:1}),e.createVNode(y,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("redo")),1)]),default:e.withCtx(()=>[e.createVNode(h,{disabled:!a.value,onClick:c},{default:e.withCtx(()=>[e.createVNode(f,{name:"Redo2"})]),_:1},8,["disabled"])]),_:1}),e.createVNode(y,null,{content:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.$t("clear")),1)]),default:e.withCtx(()=>[e.createVNode(h,{onClick:u},{default:e.withCtx(()=>[e.createVNode(f,{name:"Eraser"})]),_:1})]),_:1})]),_:1},8,["disabled"])}}}),iT={class:"bpmn-toolbar"},sT=e.defineComponent({__name:"BpmnToolbar",props:{useSave:{type:Boolean,default:!1},showLabel:{type:Boolean,default:!1},resetIdWithImport:{type:Boolean,default:!0}},setup(o){const t=e.inject(we),n=e.ref(!1),a=()=>{t.value.on("tokenSimulation.toggleMode",({active:r})=>{n.value=r})};return e.watchEffect(()=>{t!=null&&t.value&&a()}),(r,i)=>{const s=e.resolveComponent("a-button-group"),l=e.resolveComponent("a-config-provider");return e.openBlock(),e.createBlock(l,{size:"mini"},{default:e.withCtx(()=>[e.createElementVNode("div",iT,[e.createVNode(s,null,{default:e.withCtx(()=>[o.useSave?(e.openBlock(),e.createBlock(zS,{key:0})):e.createCommentVNode("",!0),e.createVNode(GS,{disabled:e.unref(n),"reset-id-with-import":o.resetIdWithImport},null,8,["disabled","reset-id-with-import"]),e.createVNode(JS),e.createVNode(QS),e.createVNode(tT)]),_:1}),e.createVNode(nT,{disabled:e.unref(n)},null,8,["disabled"]),e.createVNode(aT,{disabled:e.unref(n)},null,8,["disabled"]),e.createVNode(rT,{disabled:e.unref(n)},null,8,["disabled"]),e.renderSlot(r.$slots,"default")])]),_:3})}}}),lT={class:"bpmn-designer__wrap"},cT=e.defineComponent({name:"BpmnFullDesigner",__name:"BpmnFullDesigner",props:{xml:{type:String,default:void 0},theme:{type:String,default:"light"},local:{type:String,default:"zh_CN"},useSave:{type:Boolean,default:!1},resetIdWithImport:{type:Boolean,default:!0}},emits:["xml-changed"],setup(o,{expose:t,emit:n}){const a=o,r=n,{locale:i}=Le.useI18n(),s=e.shallowRef(),l=e.ref(),c=e.ref(),u=e.ref(),d=e.ref(),p=e.ref(),m=Q4(()=>{s.value.saveXML({format:!0}).then(({xml:C})=>{r("xml-changed",C)})},1e4),f=C=>{s.value=C,C.on("commandStack.changed",m)},h=C=>{l.value=C},y=C=>{if(C)return document.body.setAttribute("arco-theme",C);const x=document.body.getAttribute("arco-theme")==="dark";document.body.setAttribute("arco-theme",x?"light":"dark")},g=C=>{var x;C?i.value=C:i.value=i.value==="zh_CN"?"en_US":"zh_CN",mr("local-lang",i.value),(x=s.value)==null||x.get("eventBus").fire("i18n.changed")};return e.watch(()=>a.local,g,{immediate:!0}),e.watch(()=>a.theme,y,{immediate:!0}),e.provide(we,s),e.provide(Iu,l),t({provideModeler:s,toggleLang:g,toggleTheme:y,createNewProcess:C=>{var x;return(x=u.value)==null?void 0:x.createNewProcess(C)}}),(C,x)=>(e.openBlock(),e.createElementBlock("div",lT,[e.createVNode(sT,{ref_key:"toolbar",ref:c,"use-save":o.useSave,"reset-id-with-import":o.resetIdWithImport},null,8,["use-save","reset-id-with-import"]),e.createVNode(I6,{ref_key:"designer",ref:u,xml:o.xml,onModelerInit:f,onRootInit:h},{default:e.withCtx(()=>[e.createVNode(ZS,{ref_key:"linter",ref:d},null,512)]),_:1},8,["xml"]),e.createVNode(US,{ref_key:"panel",ref:p,local:o.local},null,8,["local"])]))}});exports.BpmnFullDesigner=cT;
